Html5教程 专题
专题目录
您的位置:html > Html5教程专题 > HTML5 <details> 标签
HTML5 <details> 标签
作者:--    发布时间:2019-11-20

使用 <details> 元素:

<details>
<summary>copyright 1999-2011.</summary>
<p> - by refsnes data. all rights reserved.</p>
<p>all content and graphics on this web site are the property of the company refsnes data.</p></details>
尝试一下 »

浏览器支持

internet explorerfirefoxoperagoogle chromesafari

目前,只有 chrome 和 safari 6 支持 <details> 标签。


标签定义及使用说明

<details> 标签规定了用户可见的或者隐藏的需求的补充细节。

<details> 标签用来供用户开启关闭的交互式控件。任何形式的内容都能被放在 <details> 标签里边。

<details> 元素的内容对用户是不可见的,除非设置了 open 属性。


html 4.01 与 html5之间的差异

<details> 标签是 html5 中的新标签。


提示和注释

提示:<summary> 标签配合使用可以为 details 定义标题。标题是可见的,用户点击标题时,会显示出 details。


属性

new :html5 中的新属性。

属性描述
opennewopen规定 details 是否可见。

全局属性

<details> 标签支持 html 的全局属性


事件属性

<details> 标签支持 html 的事件属性

网站声明:
本站部分内容来自网络,如您发现本站内容
侵害到您的利益,请联系本站管理员处理。
联系站长
373515719@qq.com
关于本站:
编程参考手册