SVGStylable - Web APIs 编辑
Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
The SVGStylable
interface is implemented on all objects corresponding to SVG elements that can have style
, class
and presentation attributes specified on them.
Interface overview
Also implement | None |
---|---|
Methods | |
Properties |
|
Normative document | SVG 1.1 (2nd Edition) |
Properties
Name | Type | Description |
---|---|---|
className | SVGAnimatedString | Corresponds to attribute class on the given element. |
style | CSSStyleDeclaration | Corresponds to attribute style on the given element. |
Methods
Name & Arguments | Return | Description |
---|---|---|
getPresentationAttribute(in | CSSValue | Returns the base (i.e., static) value of a given presentation attribute as an object of type CSSValue . The returned object is live; changes to the objects represent immediate changes to the objects to which the CSSValue is attached. |
Browser compatibility
BCD tables only load in the browser
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论