HTML DOM Details 객체
Details 对象
Details 对象表示 HTML <details> 元素。
访问 Details 对象
您可以通过使用 getElementById() 来访问 <details> 元素:
var x = document.getElementById("myDetails");
创建 Details 对象
您可以通过使用 document.createElement() 方法来创建 <details> 元素:
var x = document.createElement("DETAILS");
Details 대상 속성
속성 | 설명 |
---|---|
open | details에 대한 사용자가 보이는지 설정하거나 반환합니다. |
관련 페이지
HTML 참조 가이드:HTML <details> 태그