From 52e48a7ac7bfc64b78c5aabb86cab4c0d7b88054 Mon Sep 17 00:00:00 2001 From: MDN Date: Tue, 28 Sep 2021 00:50:31 +0000 Subject: [CRON] sync translated content --- .../conflicting/web/web_components/index.html | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 files/zh-cn/conflicting/web/web_components/index.html (limited to 'files/zh-cn/conflicting/web/web_components') diff --git a/files/zh-cn/conflicting/web/web_components/index.html b/files/zh-cn/conflicting/web/web_components/index.html new file mode 100644 index 0000000000..2196d5894b --- /dev/null +++ b/files/zh-cn/conflicting/web/web_components/index.html @@ -0,0 +1,60 @@ +--- +title: HTML 导入(HTML Imports) +slug: conflicting/Web/Web_Components +tags: + - HTML Imports + - Web Components +translation_of: Web/Web_Components/HTML_Imports +original_slug: Web/Web_Components/HTML_Imports +--- +

{{DefaultAPISidebar("Web Components")}}

+ +
+

在 Google Chrome 73 后已过时
+ 此功能已过时。虽然它可能仍然适用于某些浏览器,但不鼓励使用它,因为它随时可能被删除。尽量避免使用它。

+
+ +
+

Firefox 将不会以当前形式发布HTML导入特性,有关 更多信息,请参阅此状态更新在对标准达成共识或制定替代机制之前,您可以使用Google等的polyfill webcomponents.js 

+
+ +

HTML Imports 旨在成为 Web Components 的打包机制,但也可以单独使用 HTML Imports。

+ +
可以在HTML文档中使用<link> 标记导入HTML文件,如下所示:
+ +
 
+ +
<link rel="import" href="myfile.html">
+ +

链接类型 import 是新加入的。

+ +

规范

+ + + + + + + + + + + + + + +
规范状态评论
{{SpecName('HTML Imports', "", "")}}{{Spec2('HTML Imports')}}初步定义
+ +

浏览器兼容性

+ +

{{Compat("html.elements.link.rel.import")}}

+ +

阅读更多:

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