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