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/slotable/index.html | 47 +++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 files/zh-cn/web/api/slotable/index.html (limited to 'files/zh-cn/web/api/slotable') diff --git a/files/zh-cn/web/api/slotable/index.html b/files/zh-cn/web/api/slotable/index.html new file mode 100644 index 0000000000..99de358ce0 --- /dev/null +++ b/files/zh-cn/web/api/slotable/index.html @@ -0,0 +1,47 @@ +--- +title: Slotable +slug: Web/API/Slotable +tags: + - API + - Web Components + - 参考 + - 接口 +translation_of: Web/API/Slottable +--- +

{{APIRef("Shadow DOM")}}

+ +

Slotable mixin 定义了允许节点成为 {{htmlelement("slot")}} 元素的内容的特性——下面的特性被包含在 {{domxref("Element")}} 和 {{domxref("Text")}} API 之中。

+ +

属性

+ +
+
{{domxref("Slotable.assignedSlot")}} {{readonlyInline}}
+
返回节点所插入的 {{htmlelement("slot")}} 元素。
+
+ +

方法

+ +

无。

+ +

规范

+ + + + + + + + + + + + + + +
规范状态备注
{{SpecName('DOM WHATWG','#slotable','Slotable')}}{{Spec2('DOM WHATWG')}}Initial definition.
+ +

浏览器兼容性

+ + + +

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

-- cgit v1.2.3-54-g00ecf