HTML <dl> 标签
定义和用法
The <dl>
tag defines a description list. (<dl>
标签定义一个描述列表。)
The <dl>
tag is used in conjunction with <dt> (defines terms/names) and <dd> (describes each term/name). (<dl>
标签与 <dt>
(定义术语/名称) 和 <dd>
(描述每个术语/名称) 结合使用。)
浏览器支持
元素 | |||||
---|---|---|---|---|---|
<dl> | 是 | 是 | 是 | 是 | 是 |
全局属性
The <dl>
tag also supports the Global Attributes in HTML. (<dl>
标签还支持 HTML 中的 全局属性。)
事件属性
The <dl>
tag also supports the Event Attributes in HTML. (<dl>
标签还支持 HTML 中的 事件属性。)
相关页面
HTML 教程:HTML 列表
HTML DOM reference: DList Object (HTML DOM 参考:DList 对象)
默认 CSS 设置
Most browsers will display the <dl>
element with the following default values (大多数浏览器会显示 <dl>
元素,并带有以下默认值:)
示例
dl {
display: block;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
}
自己动手试一试 »