• Skip to main content
  • Skip to search
  • Skip to select language

Learn front-end development with high quality, interactive courses from Scrimba. Enroll now!

MDN Web Docs
  • References
    • Overview / Web Technology

      Web technology reference for developers

    • HTML

      Structure of content on the web

    • CSS

      Code used to describe document style

    • JavaScript

      General-purpose scripting language

    • HTTP

      Protocol for transmitting web resources

    • Web APIs

      Interfaces for building web applications

    • Web Extensions

      Developing extensions for web browsers

    • Accessibility

      Build web projects usable for all

    • Web Technology

      Web technology reference for developers

  • Learn
    • Overview / MDN Learning Area

      Learn web development

    • MDN Learning Area

      Learn web development

    • HTML

      Learn to structure web content with HTML

    • CSS

      Learn to style content using CSS

    • JavaScript

      Learn to run scripts in the browser

    • Accessibility

      Learn to make the web accessible to all

  • Plus
    • Overview

      A customized MDN experience

    • AI Help

      Get real-time assistance and support

    • Updates

      All browser compatibility updates at a glance

    • Documentation

      Learn how to use MDN Plus

    • FAQ

      Frequently asked questions about MDN Plus

  • Curriculum New
  • Blog
    • Playground

      Write, test and share your code

    • HTTP Observatory

      Scan a website for free

    • AI Help

      Get real-time assistance and support

  1. 面向开发者的 Web 技术
  2. SVG:可缩放矢量图形
  3. 参考
  4. SVG 属性参考
  5. version
    • Is this useful?
    • English (US)
    • Deutsch
    • 한국어

此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

在本文中

  • Usage context
  • 规范
  1. SVG:可缩放矢量图形
  2. 教程
  3. 从零开始介绍 SVG
    1. 引言
    2. 入门
    3. 坐标定位
    4. 基本形状
    5. 路径
    6. 填充和边框
    7. 渐变
    8. 图案
    9. 文本
    10. 基础变形
    11. 剪切和遮罩
    12. 其他 SVG 内容
    13. 滤镜效果
    14. 在 SVG 中使用字体
    15. SVG image 元素
    16. SVG 工具
    17. SVG 和 CSS
  4. 指南
    1. 内容类型
    2. Linking
    3. 命名空间速成
    4. Scripting
    5. 使用 SMIL 的 SVG 动画
    6. 作为图片的 SVG
    7. 在 HTML 内容中应用 SVG 效果
    8. SVG filters
    9. SVG In HTML Introduction
  5. 参考
  6. 元素
    1. a
    2. <animate>
    3. animateMotion
    4. animateTransform
    5. circle
    6. clipPath
    7. defs
    8. desc
    9. ellipse
    10. <feBlend>
    11. feColorMatrix
    12. <feComponentTransfer>
    13. feComposite
    14. <feConvolveMatrix>
    15. feDiffuseLighting
    16. feDisplacementMap
    17. feDistantLight
    18. <feDropShadow>
    19. <feFlood>
    20. <feFuncA>
    21. <feFuncB>
    22. <feFuncG>
    23. <feFuncR>
    24. <feGaussianBlur>
    25. <feImage>
    26. feMerge
    27. feMergeNode
    28. <feMorphology>
    29. feOffset
    30. fePointLight
    31. feSpecularLighting
    32. feSpotLight
    33. <feTile>
    34. feTurbulence
    35. filter
    36. foreignObject
    37. <g>
    38. <image>
    39. line
    40. linearGradient
    41. <marker>
    42. mask
    43. metadata
    44. <mpath>
    45. path
    46. pattern
    47. polygon
    48. polyline
    49. <radialGradient>
    50. rect
    51. script
    52. <set>
    53. stop
    54. style
    55. svg
    56. switch
    57. symbol
    58. text
    59. textPath
    60. title
    61. tspan
    62. <use>
    63. <view>
  7. 属性
    1. accumulate
    2. additive
    3. alignment-baseline
    4. amplitude
    5. attributeName
    6. attributeType 已弃用
    7. azimuth
    8. baseFrequency
    9. baseline-shift
    10. baseProfile 已弃用
    11. begin
    12. bias
    13. by
    14. calcMode
    15. class
    16. clip 已弃用
    17. clip-path
    18. clip-rule
    19. clipPathUnits
    20. color
    21. color-interpolation
    22. color-interpolation-filters
    23. cursor
    24. cx
    25. cy
    26. d
    27. data-*
    28. decoding
    29. diffuseConstant
    30. direction
    31. display
    32. divisor
    33. dominant-baseline
    34. dur
    35. dx
    36. dy
    37. edgeMode
    38. elevation
    39. end
    40. exponent
    41. fill
    42. fill-opacity
    43. fill-rule
    44. filter
    45. filterUnits
    46. flood-color
    47. flood-opacity
    48. font-family
    49. font-size
    50. font-size-adjust
    51. font-stretch 已弃用
    52. font-style
    53. font-variant
    54. font-weight
    55. fr
    56. from
    57. fx
    58. fy
    59. glyph-orientation-horizontal 已弃用
    60. glyph-orientation-vertical 已弃用
    61. gradientTransform
    62. gradientUnits
    63. height
    64. href
    65. id
    66. image-rendering
    67. in
    68. in2
    69. intercept
    70. k1
    71. k2
    72. k3
    73. k4
    74. kernelMatrix
    75. kernelUnitLength
    76. keyPoints
    77. keySplines
    78. keyTimes
    79. lang
    80. lengthAdjust
    81. letter-spacing
    82. lighting-color
    83. limitingConeAngle
    84. marker-end
    85. marker-mid
    86. marker-start
    87. markerHeight
    88. markerUnits
    89. markerWidth
    90. mask
    91. mask-type
    92. maskContentUnits
    93. maskUnits
    94. max
    95. media
    96. method 实验性
    97. min
    98. mode
    99. numOctaves
    100. opacity
    101. operator
    102. order
    103. orient
    104. origin
    105. overflow
    106. paint-order
    107. path
    108. pathLength
    109. patternContentUnits
    110. patternTransform
    111. patternUnits
    112. pointer-events
    113. points
    114. pointsAtX
    115. pointsAtY
    116. pointsAtZ
    117. preserveAlpha
    118. preserveAspectRatio
    119. primitiveUnits
    120. r
    121. radius
    122. refX
    123. refY
    124. repeatCount
    125. repeatDur
    126. requiredFeatures 已弃用
    127. restart
    128. result
    129. rotate 实验性
    130. rx
    131. ry
    132. scale
    133. seed
    134. shape-rendering
    135. side 实验性
    136. slope
    137. spacing
    138. specularConstant
    139. specularExponent
    140. spreadMethod
    141. startOffset
    142. stdDeviation
    143. stitchTiles
    144. stop-color
    145. stop-opacity
    146. stroke
    147. stroke-dasharray
    148. stroke-dashoffset
    149. stroke-linecap
    150. stroke-linejoin
    151. stroke-miterlimit
    152. stroke-opacity
    153. stroke-width
    154. style
    155. surfaceScale
    156. SVG attribute: crossorigin
    157. systemLanguage
    158. tabindex
    159. tableValues
    160. target
    161. targetX
    162. targetY
    163. text-anchor
    164. text-decoration
    165. text-rendering
    166. textLength
    167. to
    168. transform
    169. transform-origin
    170. type
    171. unicode-bidi
    172. values
    173. vector-effect
    174. version 已弃用
    175. viewBox
    176. visibility
    177. width
    178. word-spacing
    179. writing-mode
    180. x
    181. x1
    182. x2
    183. xChannelSelector
    184. xlink:arcrole 已弃用
    185. xlink:href 已弃用
    186. xlink:show 已弃用
    187. xlink:title 已弃用
    188. xlink:type 已弃用
    189. xml:lang 已弃用
    190. xml:space 已弃用
    191. y
    192. y1
    193. y2
    194. yChannelSelector
    195. z
    196. zoomAndPan 已弃用

在本文中

  • Usage context
  • 规范

version

version 属性用于指明 SVG 文档遵循规范。它只允许在根元素 <svg> 上使用。它纯粹是一个说明,对渲染或处理没有任何影响。

虽然它接受任何数字,但是只有 1.0 和 1.1 这两个有效的选择。

Usage context

类别 None
值 <number>
动画属性 No

规范

Specification
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
# SVGElementVersionAttribute

Help improve MDN

Learn how to contribute.

This page was last modified on 2025年3月19日 by MDN contributors.

View this page on GitHub • Report a problem with this content
MDN logo

Your blueprint for a better internet.

  • MDN on Bluesky
  • MDN on Mastodon
  • MDN on X (formerly Twitter)
  • MDN on GitHub
  • MDN Blog RSS Feed

MDN

  • About
  • Blog
  • Careers
  • Advertise with us

Support

  • Product help
  • Report an issue

Our communities

  • MDN Community
  • MDN Forum
  • MDN Chat

Developers

  • Web Technologies
  • Learn Web Development
  • MDN Plus
  • Hacks Blog
  • Website Privacy Notice
  • Cookies
  • Legal
  • Community Participation Guidelines

Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2025 by individual mozilla.org contributors. Content available under a Creative Commons license.