HTML <summary> 標籤
實例
使用<summary> 元素:
<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>
<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 支持<summary> 標籤。
標籤定義及使用說明
<summary>標籤為<details>元素定義一個可見的標題。 當用戶點擊標題時會顯示出詳細信息。
HTML 4.01 與HTML5之間的差異
<summary> 標籤是HTML5 中的新標籤。
提示和註釋
註釋: <summary>元素應該是<details>元素的第一個子元素。
全局屬性
<summary>標籤支持HTML的全局屬性 。
事件屬性
<summary>標籤支持HTML的事件屬性 。