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에 대한 사용자가 보이는지 설정하거나 반환합니다.

표준 속성과 이벤트

Details 대상이 표준을 지원합니다속성이벤트

관련 페이지

HTML 참조 가이드:HTML <details> 태그