Movatterモバイル変換


[0]ホーム

URL:


  1. 面向开发者的 Web 技术
  2. Web API
  3. HTMLDetailsElement

此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in EnglishAlways switch to English

HTMLDetailsElement

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

must be a string

属性

从其父级HTMLElement 继承属性.

HTMLDetailsElement.open

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

方法

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

规范

Specification
HTML
# htmldetailselement
HTML
# event-toggle

浏览器兼容性

api.HTMLDetailsElement

api.HTMLElement.toggle_event.details_elements

参见

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp