aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/htmldetailselement/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/htmldetailselement/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/api/htmldetailselement/index.html')
-rw-r--r--files/zh-cn/web/api/htmldetailselement/index.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/htmldetailselement/index.html b/files/zh-cn/web/api/htmldetailselement/index.html
new file mode 100644
index 0000000000..6b554dc11b
--- /dev/null
+++ b/files/zh-cn/web/api/htmldetailselement/index.html
@@ -0,0 +1,44 @@
+---
+title: HTMLDetailsElement
+slug: Web/API/HTMLDetailsElement
+translation_of: Web/API/HTMLDetailsElement
+---
+<p>{{APIRef("HTML DOM")}}</p>
+
+<p><strong><code>HTMLDetailsElement</code></strong> 接口提供了特殊的属性 (除了常规的 {{domxref("HTMLElement")}} 接口之外,它还可以通过继承获得这些属性) 用于操作 {{HTMLElement("details")}} 元素.</p>
+
+<p>{{InheritanceDiagram(600, 120)}}</p>
+
+<h2 id="属性">属性</h2>
+
+<p><em>从其父级 {{domxref("HTMLElement")}} 继承属性.</em></p>
+
+<dl>
+ <dt>{{domxref("HTMLDetailsElement.open")}}</dt>
+ <dd>是一个 {{domxref("boolean")}} 反射 {{htmlattrxref("open", "details")}} HTML属性, 指示是否向用户显示元素的内容 (不包括 {{HTMLElement("summary")}})</dd>
+</dl>
+
+<h2 id="方法">方法</h2>
+
+<p><em>没有特定的方法;继承其父方法 {{domxref("HTMLElement")}}.</em></p>
+
+<h2 id="规格">规格</h2>
+
+<ul>
+ <li><a href="https://html.spec.whatwg.org/multipage/interactive-elements.html#htmldetailselement">HTML Living Standard</a></li>
+ <li><a href="https://www.w3.org/TR/html52/interactive-elements.html#htmldetailselement">HTML 5.2 (W3C Proposed Recommendation)</a></li>
+</ul>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+<div>
+<div class="hidden"><a href="https://github.com/mdn/browser-compat-data">此页上的兼容性表是从结构化数据生成的。如果您想贡献数据,请访问 https://github.com/mdn/browser-compat-data</a> 并向我们发送一个请求。</div>
+
+<p>{{Compat("api.HTMLDetailsElement")}}</p>
+</div>
+
+<h2 id="另见">另见</h2>
+
+<ul>
+ <li>实现此接口的HTML元素: {{HTMLElement("details")}}</li>
+</ul>