aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/slotable
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/slotable
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/slotable')
-rw-r--r--files/zh-cn/web/api/slotable/index.html47
1 files changed, 47 insertions, 0 deletions
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
+---
+<p>{{APIRef("Shadow DOM")}}</p>
+
+<p><code>Slotable</code> mixin 定义了允许节点成为 {{htmlelement("slot")}} 元素的内容的特性——下面的特性被包含在 {{domxref("Element")}} 和 {{domxref("Text")}} API 之中。</p>
+
+<h2 id="属性">属性</h2>
+
+<dl>
+ <dt>{{domxref("Slotable.assignedSlot")}} {{readonlyInline}}</dt>
+ <dd>返回节点所插入的 {{htmlelement("slot")}} 元素。</dd>
+</dl>
+
+<h2 id="方法">方法</h2>
+
+<p>无。</p>
+
+<h2 id="规范">规范</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">规范</th>
+ <th scope="col">状态</th>
+ <th scope="col">备注</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('DOM WHATWG','#slotable','Slotable')}}</td>
+ <td>{{Spec2('DOM WHATWG')}}</td>
+ <td>Initial definition.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+
+
+<p>{{Compat("api.Slotable")}}</p>