SVG 属性参考

SVG 元素可以通过属性来修改,这些属性指定有关如何处理或呈现元素的详细信息。下面列出了 SVG 中所有的可用属性以及参考文档的链接,以帮助您了解哪些元素支持它们,以及它们如何工作。

SVG 属性(从 A-Z 排序)

一个

B

C

D

E

F

G

H

K

L

M

N

O

P

R

S

T

U

V

W

X

Y

Z

SVG 属性(按类别分类)

Generic Attributes

显示属性

备注: 所有 SVG 显示属性都可以作为 CSS 属性来使用。

alignment-baseline, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,  baseline-shift clip clip-path clip-rule (en-US) color color-interpolation (en-US) color-interpolation-filters (en-US) color-profile (en-US) color-rendering cursor (en-US) direction (en-US) display dominant-baseline enable-background fill fill-opacity fill-rule filter flood-color (en-US) flood-opacity (en-US) font-family font-size (en-US) font-size-adjust (en-US) font-stretch (en-US) font-style (en-US) font-variant (en-US) font-weight (en-US) glyph-orientation-horizontal (en-US) glyph-orientation-vertical (en-US) image-rendering kerning (en-US) letter-spacing lighting-color (en-US) marker-end marker-mid (en-US) marker-start mask opacity overflow pointer-events shape-rendering stop-color (en-US) stop-opacity (en-US) stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor transform text-decoration text-rendering (en-US) unicode-bidi (en-US) vector-effect visibility word-spacing (en-US) writing-mode (en-US)

滤镜属性

滤镜原始属性

height, , , ,  result width x y

传递函数属性

type, , , , , ,  tableValues (en-US) slope (en-US) intercept (en-US) amplitude (en-US) exponent (en-US) offset

动画属性

动画属性目标属性

attributeTypeattributeName

动画时间属性

begin, , , , , , , ,  dur end min (en-US) max restart (en-US) repeatCount repeatDur (en-US) fill

动画取值属性

calcMode, , , , , , , , ,  values keyTimes keySplines (en-US) from to (en-US) by (en-US) autoReverse accelerate decelerate

动画累加属性

additive (en-US)accumulate

事件属性

动画事件属性 (en-US)

开始开始,重复

文档事件属性 (en-US)

onabort, onerror, onresize, onscroll, onunload

全局事件属性 (en-US)

oncancel, oncanplay, oncanplaythrough, onchange, onclick, onclose, oncuechange, ondblclick, ondrag, ondragend, ondragenter, ondragexit, ondragleave, ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended, onerror, onfocus, oninput, oninvalid, onkeydown, onkeypress, onkeyup, onload, Onloadeddata, onloadedmetadata, onloadstart, onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup onmousewheel, onpause, 播放中播放中进行进度、更改时、重置时、调整大小时、滚动时、时、寻找时、选择时、播放时、播放停滞时、提交时、上暂停ontimeupdateontoggleonvolumechangeonwait

图像事件属性 (en-US)

onactivate, onfocusin, onfocusout

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值