aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/html/global_attributes/slot
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/html/global_attributes/slot
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/html/global_attributes/slot')
-rw-r--r--files/zh-cn/web/html/global_attributes/slot/index.html40
1 files changed, 40 insertions, 0 deletions
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
+---
+<div>{{HTMLSidebar("Global_attributes")}}{{SeeCompatTable}}</div>
+
+<p><strong>slot</strong> <a href="/en-US/docs/Web/HTML/Global_attributes">全局属性</a> 将一个 <a href="/en-US/docs/Web/Web_Components/Shadow_DOM">shadow DOM</a> shadow 树中的槽分配给一个元素: 带有 <code>slot</code> 属性的元素分配给由 {{HTMLElement("slot")}} 创建的槽,它的 {{htmlattrxref("name", "slot")}} 属性的值匹配 <code>slot</code> 属性的值。</p>
+
+<h2 id="规范">规范</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML WHATWG', "dom.html#attr-slot", "slot attribute")}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td> </td>
+ </tr>
+ <tr>
+ <td>{{SpecName('DOM WHATWG', "#dom-element-slot", "slot attribute")}}</td>
+ <td>{{Spec2('DOM WHATWG')}}</td>
+ <td> </td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+<p>{{Compat("html.global_attributes.slot")}}</p>
+
+<h2 id="另见">另见</h2>
+
+<ul>
+ <li>所有<a href="/en-US/docs/Web/HTML/Global_attributes">全局属性</a></li>
+</ul>