HTML5学习笔记(<command>,<details>,<dialog>)

<command>
  目前,主流浏览器都不支持 <command> 标签。
  注释:只有 IE 9 支持 <command> 标签,其他之前版本或者之后版本的 IE 浏览器不支持 <command> 标签。
  想要了解的可以去菜鸟教程查看。

<details>
  目前,只有 Chrome 和 Safari 6 支持 <details> 标签。
  <details>需要和<summary>一起使用,<summary>同样是只有 Chrome 和 Safari 6 支持。
例子:

<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>

结果:

open属性(就是让原本隐藏的内容显示出来而已)
<details open>这样既可。

open图片:

<dialog>
目前,只有 Chrome 和 Safari 6 支持 <dialog> 标签。
<dialog> 标签定义一个对话框、确认框或窗口。

例子:

<table border="1">
<tr>
<th>January <dialog open>This is an open dialog window</dialog></th>
<th>February</th>
<th>March</th>
</tr>
<tr>
<td>31</td>
<td>28</td>
<td>31</td>
</tr>
</table>

结果:

它同样拥有open属性。

原文地址:https://www.cnblogs.com/smileToMe/p/7822559.html