blob: ce627b9bd603a169ef3b790fbd58182445811689 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
---
title: <dd>
slug: Web/HTML/Element/dd
tags:
- HTML
- HTML 分组内容
- Web
- 元素
- 引用
translation_of: Web/HTML/Element/dd
---
<p>{{HTMLRef}}</p>
<p><strong>HTML <code><dd></code> 元素</strong>(<em>HTML 描述元素</em>)用来指明一个描述列表 ({{HTMLElement("dl")}}) 元素中一个术语的描述。这个元素只能作为描述列表元素的子元素出现,并且必须跟着一个 {{HTMLElement("dt")}} 元素。</p>
<table class="properties">
<tbody>
<tr>
<th scope="row"><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">内容分类</a></th>
<td>None</td>
</tr>
<tr>
<th scope="row">允许的内容</th>
<td><a href="/en-US/docs/HTML/Content_categories#Flow_content" title="HTML/Content_categories#Flow_content">流内容</a></td>
</tr>
<tr>
<th scope="row">标签省略</th>
<td>必须有开标签。如果该元素后面紧跟着另一个 <dd> 元素,或者父元素中没有更多内容,则可以省略闭标签。</td>
</tr>
<tr>
<th scope="row">允许的父元素</th>
<td>该元素需要出现在 {{HTMLElement("dt")}} 元素和 {{HTMLElement("dd")}} 元素之后,并且在一个 {{HTMLElement("dl")}} 元素里。</td>
</tr>
<tr>
<th scope="row">DOM 接口</th>
<td>{{domxref("HTMLElement")}}</td>
</tr>
</tbody>
</table>
<h2 id="属性">属性</h2>
<p><span style="line-height: 21px;">该元素包含</span><a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">全局属性</a>。</p>
<dl>
<dt>{{htmlattrdef("nowrap")}} {{Non-standard_inline}}</dt>
<dd>如果这个属性的值为 yes,那么定义的描述文字将不会包裹。默认值为 no。</dd>
</dl>
<h2 id="示例">示例</h2>
<p>示例请看<a href="/zh-CN/docs/Web/HTML/Element/dl#examples"><dl> 的示例</a>。</p>
<h2 id="Specifications" name="Specifications">规范</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">规范</th>
<th scope="col">状态</th>
<th scope="col">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{SpecName('HTML WHATWG', 'grouping-content.html#the-dd-element', '<dd>')}}</td>
<td>{{Spec2('HTML WHATWG')}}</td>
<td> </td>
</tr>
<tr>
<td>{{SpecName('HTML5 W3C', 'grouping-content.html#the-dd-element', '<dd>')}}</td>
<td>{{Spec2('HTML5 W3C')}}</td>
<td> </td>
</tr>
<tr>
<td>{{SpecName('HTML4.01', 'struct/lists.html#h-10.3', '<dd>')}}</td>
<td>{{Spec2('HTML4.01')}}</td>
<td> </td>
</tr>
</tbody>
</table>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
{{Compat("html.elements.dd")}}
<h2 id="See_also">See also</h2>
<ul>
<li>{{HTMLELement("dl")}}, {{HTMLElement("dt")}}</li>
</ul>
|