From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../web/html/global_attributes/slot/index.html | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 files/zh-cn/web/html/global_attributes/slot/index.html (limited to 'files/zh-cn/web/html/global_attributes/slot') diff --git a/files/zh-cn/web/html/global_attributes/slot/index.html b/files/zh-cn/web/html/global_attributes/slot/index.html new file mode 100644 index 0000000000..43a73a82c5 --- /dev/null +++ b/files/zh-cn/web/html/global_attributes/slot/index.html @@ -0,0 +1,40 @@ +--- +title: slot +slug: Web/HTML/Global_attributes/slot +translation_of: Web/HTML/Global_attributes/slot +--- +
{{HTMLSidebar("Global_attributes")}}{{SeeCompatTable}}
+ +

slot 全局属性 将一个 shadow DOM shadow 树中的槽分配给一个元素: 带有 slot 属性的元素分配给由 {{HTMLElement("slot")}} 创建的槽,它的 {{htmlattrxref("name", "slot")}} 属性的值匹配 slot 属性的值。

+ +

规范

+ + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG', "dom.html#attr-slot", "slot attribute")}}{{Spec2('HTML WHATWG')}} 
{{SpecName('DOM WHATWG', "#dom-element-slot", "slot attribute")}}{{Spec2('DOM WHATWG')}} 
+ +

浏览器兼容性

+ +

{{Compat("html.global_attributes.slot")}}

+ +

另见

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