SVG 属性参考
SVG 元素可以通过属性来修改,这些属性指定有关如何处理或渲染元素的详细信息。
下面列出了 SVG 中所有的可用属性以及参考文档的链接,以帮助你了解哪些元素支持它们,以及它们如何工作。
SVG 属性(从 A-Z 排序)
>A
B
C
D
E
F
G
H
I
K
L
M
N
O
P
R
S
scaleseedshape-renderingslopespacingspecularConstantspecularExponentspeedspreadMethodstartOffsetstdDeviationstitchTilesstop-colorstop-opacitystrokestroke-dasharraystroke-dashoffsetstroke-linecapstroke-linejoinstroke-miterlimitstroke-opacitystroke-widthstylesurfaceScalesystemLanguage
T
U
V
W
X
Y
Z
SVG 属性(按类别分类)
>通用属性
XLink 属性
表现属性
备注: 所有 SVG 表现属性都可以作为 CSS 属性来使用。
alignment-baselinebaseline-shiftclipclip-pathclip-rulecolorcolor-interpolationcolor-interpolation-filterscolor-profilecolor-renderingcursorddirectiondisplaydominant-baselinefillfill-opacityfill-rulefilterflood-colorflood-opacityfont-familyfont-sizefont-size-adjustfont-stretchfont-stylefont-variantfont-weightglyph-orientation-horizontalglyph-orientation-verticalimage-renderingkerningletter-spacinglighting-colormarker-endmarker-midmarker-startmaskopacityoverflowpointer-eventsshape-renderingstop-colorstop-opacitystrokestroke-dasharraystroke-dashoffsetstroke-linecapstroke-linejoinstroke-miterlimitstroke-opacitystroke-widthtext-anchortext-decorationtext-renderingtransformtransform-originunicode-bidivector-effectvisibilityword-spacingwriting-mode
滤镜属性
动画属性
事件属性
onabortonactivateonbeginoncanceloncanplayoncanplaythroughonchangeonclickoncloseoncuechangeondblclickondragondragendondragenterondragleaveondragoverondragstartondropondurationchangeonemptiedonendonendedonerroronerroronfocusonfocusinonfocusoutoninputoninvalidonkeydownonkeypressonkeyuponloadonloadeddataonloadedmetadataonloadstartonmousedownonmouseenteronmouseleaveonmousemoveonmouseoutonmouseoveronmouseuponmousewheelonpauseonplayonplayingonprogressonratechangeonrepeatonresetonresizeonresizeonscrollonscrollonseekedonseekingonselectonshowonstalledonsubmitonsuspendontimeupdateontoggleonunloadonvolumechangeonwaiting