HTML <details> open 属性
标签" href="tag-main.html"><main>
<map>
<mark>
<menu>
<meta>
<meter>
<nav>
<noframes>
<noscript>
<object>
<ol>
<optgroup>
<option>
<output>
<p>
<param>
<pre>
<html>
<picture>
<progress>
<q>
<rp>
<rt>
<ruby>
<s>
<samp>
<script>
<section>
<select>
<small>
<source>
<span>
<strike>
<strong>
<style>
<sub>
<summary>
<sup>
<table>
<tbody>
<td>
<textarea>
< template>
<tfoot>
<th>
<thead>
<time>
<title>
<tr>
<track>
<tt>
<u>
<ul>
<var>
<video>
<wbr>
HTML <details> open 属性
实例
一个 打开/可见 的 <details> 元素:
<details open>
<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>
浏览器支持
目前只有Chrome 和 Safari 6支持 open 属性。
定义和用法
open 属性是一个 boolean(布尔)属性。
open 属性规定在 HTML 页面上 details 应该是可见的。
HTML 4.01 与 HTML5之间的差异
<details> 标签是 HTML5 新标签。
HTML 与 XHTML 之间的区别
在 XHTML 中, 属性不允许简写, open 属性必须定义为: <details open="open">。
语法
<details open>
HTML <details> 标签