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 --- files/zh-cn/_redirects.txt | 6 +- files/zh-cn/_wikihistory.json | 30 +++--- .../conflicting/web/api/wheelevent/index.html | 120 +++++++++++++++++++++ .../conflicting/web/web_components/index.html | 60 +++++++++++ files/zh-cn/web/api/mousewheelevent/index.html | 119 -------------------- .../web/web_components/html_imports/index.html | 60 ----------- 6 files changed, 199 insertions(+), 196 deletions(-) create mode 100644 files/zh-cn/conflicting/web/api/wheelevent/index.html create mode 100644 files/zh-cn/conflicting/web/web_components/index.html delete mode 100644 files/zh-cn/web/api/mousewheelevent/index.html delete mode 100644 files/zh-cn/web/web_components/html_imports/index.html (limited to 'files/zh-cn') diff --git a/files/zh-cn/_redirects.txt b/files/zh-cn/_redirects.txt index 701804d446..90ff7ef11f 100644 --- a/files/zh-cn/_redirects.txt +++ b/files/zh-cn/_redirects.txt @@ -243,7 +243,7 @@ /zh-CN/docs/DOM/ImageData /zh-CN/docs/Web/API/ImageData /zh-CN/docs/DOM/KeyboardEvent /zh-CN/docs/Web/API/KeyboardEvent /zh-CN/docs/DOM/MouseScrollEvent /zh-CN/docs/Web/API/MouseScrollEvent -/zh-CN/docs/DOM/MouseWheelEvent /zh-CN/docs/Web/API/MouseWheelEvent +/zh-CN/docs/DOM/MouseWheelEvent /zh-CN/docs/conflicting/Web/API/WheelEvent /zh-CN/docs/DOM/MutationObserver /zh-CN/docs/Web/API/MutationObserver /zh-CN/docs/DOM/Node /zh-CN/docs/Web/API/Node /zh-CN/docs/DOM/Node.appendChild /zh-CN/docs/Web/API/Node/appendChild @@ -1389,6 +1389,7 @@ /zh-CN/docs/Web/API/Location.replace /zh-CN/docs/Web/API/Location/replace /zh-CN/docs/Web/API/MediaStream.addTrack /zh-CN/docs/Web/API/MediaStream/addTrack /zh-CN/docs/Web/API/MouseEvent/which /zh-CN/docs/conflicting/Web/API/UIEvent/which +/zh-CN/docs/Web/API/MouseWheelEvent /zh-CN/docs/conflicting/Web/API/WheelEvent /zh-CN/docs/Web/API/Navigator.battery /zh-CN/docs/Web/API/Navigator/battery /zh-CN/docs/Web/API/Navigator.buildID /zh-CN/docs/Web/API/Navigator/buildID /zh-CN/docs/Web/API/Navigator.cookieEnabled /zh-CN/docs/Web/API/Navigator/cookieEnabled @@ -2191,7 +2192,8 @@ /zh-CN/docs/Web/WebGL/Getting_started_with_WebGL /zh-CN/docs/Web/API/WebGL_API/Tutorial/Getting_started_with_WebGL /zh-CN/docs/Web/WebGL/用WebGL来画2D图形 /zh-CN/docs/Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context /zh-CN/docs/Web/Web_Components/Custom_Elements /zh-CN/docs/Web/Web_Components/Using_custom_elements -/zh-CN/docs/Web/Web_Components/HTML导入 /zh-CN/docs/Web/Web_Components/HTML_Imports +/zh-CN/docs/Web/Web_Components/HTML_Imports /zh-CN/docs/conflicting/Web/Web_Components +/zh-CN/docs/Web/Web_Components/HTML导入 /zh-CN/docs/conflicting/Web/Web_Components /zh-CN/docs/Web/XSLT/Elements /zh-CN/docs/Web/XSLT/Element /zh-CN/docs/Web/媒体 /zh-CN/docs/Web/Media /zh-CN/docs/Web/媒体/Autoplay_guide /zh-CN/docs/Web/Media/Autoplay_guide diff --git a/files/zh-cn/_wikihistory.json b/files/zh-cn/_wikihistory.json index 704de457fd..d0bbfa5ee4 100644 --- a/files/zh-cn/_wikihistory.json +++ b/files/zh-cn/_wikihistory.json @@ -17277,13 +17277,6 @@ "teoli" ] }, - "Web/API/MouseWheelEvent": { - "modified": "2019-03-23T23:38:38.526Z", - "contributors": [ - "ziyunfei", - "teoli" - ] - }, "Web/API/MutationObserver": { "modified": "2020-10-15T21:21:10.567Z", "contributors": [ @@ -46366,14 +46359,6 @@ "Fantasy_shao" ] }, - "Web/Web_Components/HTML_Imports": { - "modified": "2020-10-15T21:47:50.577Z", - "contributors": [ - "2A5F", - "xgqfrms-GitHub", - "jchnxu" - ] - }, "Web/Web_Components/Using_custom_elements": { "modified": "2020-08-13T09:13:52.060Z", "contributors": [ @@ -47330,6 +47315,13 @@ "Carrie zhxj" ] }, + "conflicting/Web/API/WheelEvent": { + "modified": "2019-03-23T23:38:38.526Z", + "contributors": [ + "ziyunfei", + "teoli" + ] + }, "conflicting/Web/API/Window": { "modified": "2019-01-16T17:02:20.467Z", "contributors": [ @@ -48021,6 +48013,14 @@ "liminjun" ] }, + "conflicting/Web/Web_Components": { + "modified": "2020-10-15T21:47:50.577Z", + "contributors": [ + "2A5F", + "xgqfrms-GitHub", + "jchnxu" + ] + }, "conflicting/Web/Web_Components/Using_shadow_DOM": { "modified": "2019-03-23T22:29:42.834Z", "contributors": [ diff --git a/files/zh-cn/conflicting/web/api/wheelevent/index.html b/files/zh-cn/conflicting/web/api/wheelevent/index.html new file mode 100644 index 0000000000..c5d60a279c --- /dev/null +++ b/files/zh-cn/conflicting/web/api/wheelevent/index.html @@ -0,0 +1,120 @@ +--- +title: MouseWheelEvent +slug: conflicting/Web/API/WheelEvent +translation_of: Web/API/MouseWheelEvent +original_slug: Web/API/MouseWheelEvent +--- +

{{APIRef("DOM Events")}}{{ Non-standard_header() }}{{deprecated_header}}

+ +

{{ note("由于该事件对象是非标准的,所以Gecko并不准备实现它.") }}

+ +

MouseWheelEvent事件对象代表了当用户在滚动鼠标滚轮时触发的事件.

+ +

要优先使用标准化过的WheelEvent来代替该陈旧的事件对象.

+ +

属性

+ + + + + + + + + + + + + + +
名称类型描述
wheelDeltalong滚动的距离,以像素为单位 (由MSDN定义,但实际的用法不同, 查看mousewheel. 只读.
+ +

滚轮相关事件对比

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
事件类型事件对象是否标准兼容性
mousewheelMouseWheelEvent非标准只有Firefox不支持
DOMMouseScrollMouseScrollEvent非标准只有Firefox支持
wheelWheelEventDOM Level 3Firefox 17+ ie9+
+ +

浏览器兼容性

+ +

{{ CompatibilityTable() }}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{ CompatVersionUnknown() }}{{ CompatNo() }}{{ CompatIE("6.0") }}{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}
+
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{ CompatNo() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
+
+ +

相关链接

+ + 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")}}

+ +

阅读更多:

+ + diff --git a/files/zh-cn/web/api/mousewheelevent/index.html b/files/zh-cn/web/api/mousewheelevent/index.html deleted file mode 100644 index cc2d1e95ea..0000000000 --- a/files/zh-cn/web/api/mousewheelevent/index.html +++ /dev/null @@ -1,119 +0,0 @@ ---- -title: MouseWheelEvent -slug: Web/API/MouseWheelEvent -translation_of: Web/API/MouseWheelEvent ---- -

{{APIRef("DOM Events")}}{{ Non-standard_header() }}{{deprecated_header}}

- -

{{ note("由于该事件对象是非标准的,所以Gecko并不准备实现它.") }}

- -

MouseWheelEvent事件对象代表了当用户在滚动鼠标滚轮时触发的事件.

- -

要优先使用标准化过的WheelEvent来代替该陈旧的事件对象.

- -

属性

- - - - - - - - - - - - - - -
名称类型描述
wheelDeltalong滚动的距离,以像素为单位 (由MSDN定义,但实际的用法不同, 查看mousewheel. 只读.
- -

滚轮相关事件对比

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
事件类型事件对象是否标准兼容性
mousewheelMouseWheelEvent非标准只有Firefox不支持
DOMMouseScrollMouseScrollEvent非标准只有Firefox支持
wheelWheelEventDOM Level 3Firefox 17+ ie9+
- -

浏览器兼容性

- -

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{ CompatVersionUnknown() }}{{ CompatNo() }}{{ CompatIE("6.0") }}{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}
-
- -
- - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{ CompatNo() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
- -

相关链接

- - diff --git a/files/zh-cn/web/web_components/html_imports/index.html b/files/zh-cn/web/web_components/html_imports/index.html deleted file mode 100644 index c9cc5bd9a0..0000000000 --- a/files/zh-cn/web/web_components/html_imports/index.html +++ /dev/null @@ -1,60 +0,0 @@ ---- -title: HTML 导入(HTML Imports) -slug: Web/Web_Components/HTML_Imports -tags: - - HTML Imports - - Web Components -translation_of: Web/Web_Components/HTML_Imports -original_slug: Web/Web_Components/HTML导入 ---- -

{{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