SVG参考手册
分类 | Elements
desc
SVG图形中的每个容器元素或图形元素都可以使用<desc>
描述为纯文本的元素提供描述字符串。
当前SVG文档片段在可视媒体上呈现为SVG时,<desc>
元素不会被渲染为图形的一部分。交替的演示是可能的,包括视觉和听觉,它们显示<desc>
元素,但不显示<path>
元素或其他图形元素。该<desc>
元素通常会提高SVG文件的可访问性。
用法上下文
分类 |
描述性元素 |
---|---|
允许的内容 |
任何元素或字符数据 |
属性
全局属性
- Core attributes
class
style
具体属性
None
DOM接口
这个元素实现了SVGDescElement
接口。
产品规格
Specification |
Status |
Comment |
---|---|---|
Scalable Vector Graphics (SVG) 2The definition of '<desc>' in that specification. |
Candidate Recommendation |
|
Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '<desc>' in that specification. |
Recommendation |
Initial definition |
浏览器兼容性
Feature |
Chrome |
Edge |
Firefox (Gecko) |
Internet Explorer |
Opera |
Safari |
---|---|---|---|---|---|---|
Basic support |
1.0 |
1.5 (1.8) |
(Yes) |
9.0 |
8.0 |
3.0.4 |
Feature |
Android |
Edge |
Firefox Mobile (Gecko) |
IE Phone |
Opera Mobile |
Safari Mobile |
---|---|---|---|---|---|---|
Basic support |
3.0 |
(Yes) |
1.0 (1.8) |
No support |
(Yes) |
3.0.4 |
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.