HTMLオープン属性
定義と使用法
open
属性はブール属性です。
存在する場合、デフォルトで詳細を表示(オープン)する必要があることを指定します。
に適用されます
このopen
属性は、次の要素で使用できます。
エレメント | 属性 |
---|---|
<詳細> | 開いた |
例
開いている/表示されている<details>要素:
<details open>
<summary>Copyright 1999-2014.</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>
ブラウザのサポート
表の数字は、属性を完全にサポートする最初のブラウザーバージョンを示しています。
Attribute | |||||
---|---|---|---|---|---|
open | 12.0 | Not supported | Not supported | 6.0 | 15.0 |