1. 개발자를 위한 웹 기술
  2. SVG: Scalable Vector Graphics
  3. Reference
  4. Attributes
  5. viewBox

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

viewBox

« SVG Attribute reference home

viewBox 속성은 특수한 container element 에 fit 하기 위한 주어진 graphics stretch 의 set 을 명시한다.

viewBox 속성의 값은 whitespace and/or a comma 로 나뉘어진 min-x, min-y, width, height 4가지 number list 이다. 이는 주어진 element 에 의해 설정된 viewport 의 bounds 에 맵핑되어야 하는 user space 내의 rectangle 을 명시하며, preserveAspectRatio 속성과 관계가 있다.

음수로 이루어진 width 또는 height 는 허용되지 않으며 zero 값은 element rendering 이 불가하다.

Usage context

Categories None
Value See above
Animatable Yes
Normative document SVG 1.1 (2nd Edition)

Example

Elements

아래 element 들은 viewBox 속성을 사용할 수 있다.

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /