From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/api/htmlcontentelement/index.html | 54 +++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 files/zh-cn/web/api/htmlcontentelement/index.html (limited to 'files/zh-cn/web/api/htmlcontentelement') diff --git a/files/zh-cn/web/api/htmlcontentelement/index.html b/files/zh-cn/web/api/htmlcontentelement/index.html new file mode 100644 index 0000000000..6efd207afb --- /dev/null +++ b/files/zh-cn/web/api/htmlcontentelement/index.html @@ -0,0 +1,54 @@ +--- +title: HTMLContentElement +slug: Web/API/HTMLContentElement +tags: + - API + - DOM + - 参考 + - 接口 +translation_of: Web/API/HTMLContentElement +--- +

{{ APIRef("Web Components") }}

+ +

{{Deprecated_header}}

+ +

HTMLContentElement 接口表示一个 HTML {{HTMLElement("content")}} 元素。<content> 元素曾被用于 Shadow DOM

+ +

属性

+ +

此接口继承 {{domxref("HTMLElement")}} 接口的属性。

+ +
+
{{domxref("HTMLContentElement.select")}}
+
Is a {{domxref("DOMString")}} that reflects the {{ htmlattrxref("select", "content") }} HTML attribute. The value is a comma-separated list of CSS selectors that select the content to insert in place of the <content> element.
+
+ +

方法

+ +

此接口继承 {{domxref("HTMLElement")}} 接口的方法。

+ +
+
{{domxref("HTMLContentElement.getDistributedNodes()")}}
+
Returns a static {{domxref("NodeList")}} of the {{glossary("distributed nodes")}} associated with this <content> element. 
+
+ +

规范

+ +

此特性不再存在于任何标准中。

+ +

浏览器兼容性

+ + + +

{{Compat("api.HTMLContentElement")}}

+ +

参见

+ + + +
+
+
-- cgit v1.2.3-54-g00ecf