aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/conflicting/web/api/element/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/conflicting/web/api/element/index.html')
-rw-r--r--files/zh-cn/conflicting/web/api/element/index.html48
1 files changed, 48 insertions, 0 deletions
diff --git a/files/zh-cn/conflicting/web/api/element/index.html b/files/zh-cn/conflicting/web/api/element/index.html
new file mode 100644
index 0000000000..2a489d3b22
--- /dev/null
+++ b/files/zh-cn/conflicting/web/api/element/index.html
@@ -0,0 +1,48 @@
+---
+title: Slotable
+slug: Web/API/Slotable
+tags:
+ - API
+ - Web Components
+ - 参考
+ - 接口
+translation_of: Web/API/Slottable
+translation_of_original: Web/API/Slotable
+---
+<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>