Β« 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
μμ±μ μ¬μ©ν μ μλ€.