blob: 1decb9b81e603a9f23610c9c082694faa39d8ff4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
---
title: desc
slug: Web/SVG/Element/desc
tags:
- SVG
- SVG描述
- 元素
translation_of: Web/SVG/Element/desc
---
<div>{{SVGRef}}</div>
<p>SVG绘画中的每个容器元素或图形元素都可以提供一个<code>desc</code>描述性字符串,这些描述只是纯文本的。如果当前的SVG文档片段在视媒体中呈现,desc元素不会呈现为图形的一部分。替代性提词既可以看到也可以听到,它显示了desc元素但是不会显示路径元素或者别的图形元素。<code>desc</code>元素提升了SVG文档的可访问性。</p>
<h2 id="用法">用法</h2>
<p>{{svginfo}}</p>
<h2 id="示例">示例</h2>
<h2 id="属性">属性</h2>
<h3 id="全局属性">全局属性</h3>
<ul>
<li><a href="/en/SVG/Attribute#Core" title="en/SVG/Attribute#Core">核心属性</a> »</li>
<li>{{ SVGAttr("class") }}</li>
<li>{{ SVGAttr("style") }}</li>
</ul>
<h3 id="专有属性">专有属性</h3>
<p><em>没有专有属性</em></p>
<h2 id="DOM_接口">DOM 接口</h2>
<p>该元素实现了<code><a href="/en/DOM/SVGDescElement" title="en/DOM/SVGDescElement">SVGDescElement</a>接口。</code></p>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
{{Compat("svg.elements.desc")}}
<h2 id="参见">参见</h2>
<ul>
<li>{{ SVGElement("title") }}</li>
</ul>
|