HTMLDetailsElement

翻译不完整。 请帮助我们翻译这篇文章!

HTMLDetailsElement 接口提供了特殊的属性 (除了常规的 HTMLElement 接口之外,它还可以通过继承获得这些属性) 用于操作 <details> 元素.

属性

从其父级 HTMLElement 继承属性.

HTMLDetailsElement.open
是一个 boolean 反射 open HTML属性, 指示是否向用户显示元素的内容 (不包括 <summary>)

方法

没有特定的方法;继承其父方法 HTMLElement.

规格

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
HTMLDetailsElementChrome Full support YesEdge Full support ≤79Firefox Full support YesIE No support NoOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes
openChrome Full support YesEdge Full support ≤79Firefox Full support YesIE No support NoOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes
toggle eventChrome Full support YesEdge Full support ≤79Firefox Full support YesIE No support NoOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support  
Full support
No support  
No support

另见