HTML <details> open 属性
实例
可见的 details 元素:
<details open="open"><summary>Copyright 2011.</summary><p>All pages and graphics on this web site are the property of W3School.</p></details>
定义和用法
open 属性是一个布尔属性。
若设置,它规定 details 应该对用户可见(开放)。
浏览器支持
表格中的数字注明了完全支持该属性的首个浏览器版本。
| 属性 | ![]() |
![]() |
![]() |
![]() |
![]() |
|---|---|---|---|---|---|
| open | 12.0 | 79.0 | 49.0 | 6.0 | 15.0 |
语法
<details open>

