SVG Styling Attributes

The SVG styling attributes are all the attributes that can be specified on any SVG element to apply CSS styling effects.

属性

class

Assigns a class name or set of class names to an element. It functions identically to the class attribute in HTML. : Any valid ID string; Animatable : Yes

style

It specifies style information for its element. It functions identically to the style attribute in HTML. : Any valid style string; Animatable : No

浏览器兼容性

BCD tables only load in the browser

Found a problem with this page?

最后修改: , 由 MDN 贡献者

版权所有  © 2014-2026 乐数软件    

工业和信息化部: 粤ICP备14079481号-1