<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>
media
attribute specifies a
media query
that must be matched for a style sheet to apply.
You can use this attribute with the following SVG elements:
<svg viewBox="0 0 240 220" xmlns="http://www.w3.org/2000/svg">
<style>
rect { fill: black; }
</style>
<style media="all and (min-width: 600px)">
rect { fill: seagreen; }
</style>
<text y="15">Resize the window to see the effect</text>
<rect y="20" width="200" height="200" />
</svg>
| 值 |
<media-query-list>
|
|---|---|
| 默认值 |
all
|
| Animatable | Yes |
<media-query-list>
This value holds a media query that needs to match in order for the style sheet to be applied.
If not specified, the style sheet is applied unconditionally.
| 规范 | 状态 | 注释 |
|---|---|---|
|
Scalable Vector Graphics (SVG) 2
The definition of 'media' in that specification. |
候选推荐 |
Changed the value definition from different media types as defined in
CSS 2 to
<media-query-list>
.
|
|
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'media' in that specification. |
推荐 | 初始定义 |
BCD tables only load in the browser
最后修改: , 由 MDN 贡献者