实例
关于文档的细节:
<details> <summary>Copyright 2011.</summary> <p>All pages and graphics on this web site are the property of W3School.</p> </details>
浏览器支持
元素 | Chrome | IE | Firefox | Safari | Opera |
---|---|---|---|---|---|
<details> | 12.0 | 79.0 | 49.0 | 6.0 | 15.0 |
定义和用法
<details> 标签用于描述文档或文档某个部分的细节。
HTML 4.01 与 HTML 5 之间的差异
<details> 标签是 HTML 5 中的新标签。
提示和注释
标题是可见的,用户点击标题时,会显示出 details。
属性
new : HTML5 中的新属性。
属性 | 值 | 描述 |
---|---|---|
open | open | 定义 details 是否可见。 |