<feBlend>
<feColorMatrix>
<feComponentTransfer>
<feComposite>
<feConvolveMatrix>
<feDiffuseLighting>
<feDisplacementMap>
<feDistantLight>
<feFlood>
<feFuncA>
<feFuncB>
<feFuncG>
<feFuncR>
<feGaussianBlur>
<feImage>
<feMerge>
<feMergeNode>
<feMorphology>
<feOffset>
<fePointLight>
<feSpecularLighting>
<feSpotLight>
<feTile>
<feTurbulence>
<filter>
<font>
<font-face>
<font-face-format>
<font-face-name>
<font-face-src>
<font-face-uri>
<foreignObject>
style
attribute allows to style an element using
CSS
declarations. It functions identically to
the
style
attribute in HTML
.
You can use this attribute with any SVG element.
<svg viewbox="0 0 100 60" xmlns="http://www.w3.org/2000/svg">
<rect width="80" height="40" x="10" y="10"
style="fill: skyblue; stroke: cadetblue; stroke-width: 2;"/>
</svg>
| 值 |
<style>
|
|---|---|
| 默认值 | None |
| Animatable | No |
<style>
The syntax of style data depends on the style sheet language. By default, the style sheet language is CSS .
注意:
In theory,
the
contentStyleType
属性
could be used to specify styling languages other than CSS, like
XSL(T)
. However, this was never implemented satisfactorily in browsers, so you should not rely on it.
BCD tables only load in the browser
最后修改: , 由 MDN 贡献者