位置:首頁 > 軟件操作教程 > 編程開發(fā) > HTML > 問題詳情

HTML5中新增的元素 20.details元素

提問人:劉團圓發(fā)布時間:2020-11-13

<details>標簽規(guī)定了用戶可見的或者隱藏的需求的補充細節(jié)。


<details〉標簽用來開啟關(guān)閉的交互式控件。任何形式的內(nèi)容都能放在〈details〉標簽里邊。details元素的內(nèi)容對用戶是不可見的,除非設(shè)置了open屬性。


在HTML5中,details元素的語法如下:

<details>

<summary>Copyright 1999-2011.</summary〉

<p> - by Refsues Data. All Rights Reserved.</p>

<p>All content and graphics on this web site ate the property of the company Refsnes </p>

</details>


details元素是HTML5中新增的元素,HTML4中沒有相應的元素來表示。

繼續(xù)查找其他問題的答案?

相關(guān)視頻回答
回復(0)
返回頂部