From 01f082cdc9c06afc6dfa7573345590ea9eec8714 Mon Sep 17 00:00:00 2001 From: MDN Date: Sat, 12 Feb 2022 00:56:58 +0000 Subject: [CRON] sync translated content --- files/zh-cn/_redirects.txt | 2 + files/zh-cn/_wikihistory.json | 26 +++--- .../api/document/fullscreenchange_event/index.html | 67 +++++++++++++ .../api/document/fullscreenerror_event/index.html | 104 +++++++++++++++++++++ .../web/api/document/onfullscreenchange/index.html | 66 ------------- .../web/api/document/onfullscreenerror/index.html | 103 -------------------- 6 files changed, 186 insertions(+), 182 deletions(-) create mode 100644 files/zh-cn/conflicting/web/api/document/fullscreenchange_event/index.html create mode 100644 files/zh-cn/web/api/document/fullscreenerror_event/index.html delete mode 100644 files/zh-cn/web/api/document/onfullscreenchange/index.html delete mode 100644 files/zh-cn/web/api/document/onfullscreenerror/index.html (limited to 'files/zh-cn') diff --git a/files/zh-cn/_redirects.txt b/files/zh-cn/_redirects.txt index 3fa6160c00..84dfe0d381 100644 --- a/files/zh-cn/_redirects.txt +++ b/files/zh-cn/_redirects.txt @@ -1265,6 +1265,8 @@ /zh-CN/docs/Web/API/Document/mozFullScreen /zh-CN/docs/Web/API/Document/fullscreen /zh-CN/docs/Web/API/Document/mozFullScreenElement /zh-CN/docs/Web/API/Document/fullscreenElement /zh-CN/docs/Web/API/Document/mozFullScreenEnabled /zh-CN/docs/Web/API/Document/fullscreenEnabled +/zh-CN/docs/Web/API/Document/onfullscreenchange /zh-CN/docs/conflicting/Web/API/Document/fullscreenchange_event +/zh-CN/docs/Web/API/Document/onfullscreenerror /zh-CN/docs/Web/API/Document/fullscreenerror_event /zh-CN/docs/Web/API/Document/onreadystatechange /en-US/docs/Web/API/Document/readystatechange_event /zh-CN/docs/Web/API/Document/rouchmove_event /zh-CN/docs/Web/API/Document/touchmove_event /zh-CN/docs/Web/API/DocumentOrShadowRoot/activeElement /zh-CN/docs/Web/API/Document/activeElement diff --git a/files/zh-cn/_wikihistory.json b/files/zh-cn/_wikihistory.json index 6cbfab7e35..4589deb197 100644 --- a/files/zh-cn/_wikihistory.json +++ b/files/zh-cn/_wikihistory.json @@ -11097,6 +11097,12 @@ "zhaoshouxin" ] }, + "Web/API/Document/fullscreenerror_event": { + "modified": "2019-04-27T09:18:56.721Z", + "contributors": [ + "ZWkang" + ] + }, "Web/API/Document/getElementById": { "modified": "2020-10-15T21:32:38.932Z", "contributors": [ @@ -11295,19 +11301,6 @@ "zhangyaochun1987" ] }, - "Web/API/Document/onfullscreenchange": { - "modified": "2020-10-15T21:49:09.799Z", - "contributors": [ - "gentlecoder", - "libmw" - ] - }, - "Web/API/Document/onfullscreenerror": { - "modified": "2019-04-27T09:18:56.721Z", - "contributors": [ - "ZWkang" - ] - }, "Web/API/Document/onoffline": { "modified": "2019-03-23T22:24:33.524Z", "contributors": [ @@ -46843,6 +46836,13 @@ "yulifu" ] }, + "conflicting/Web/API/Document/fullscreenchange_event": { + "modified": "2020-10-15T21:49:09.799Z", + "contributors": [ + "gentlecoder", + "libmw" + ] + }, "conflicting/Web/API/Document/hasFocus": { "modified": "2019-03-23T23:31:56.410Z", "contributors": [ diff --git a/files/zh-cn/conflicting/web/api/document/fullscreenchange_event/index.html b/files/zh-cn/conflicting/web/api/document/fullscreenchange_event/index.html new file mode 100644 index 0000000000..278159eada --- /dev/null +++ b/files/zh-cn/conflicting/web/api/document/fullscreenchange_event/index.html @@ -0,0 +1,67 @@ +--- +title: Document.onfullscreenchange +slug: conflicting/Web/API/Document/fullscreenchange_event +tags: + - API + - Document + - onfullscreenchange +translation_of: Web/API/Document/onfullscreenchange +original_slug: Web/API/Document/onfullscreenchange +--- +
{{ApiRef("Fullscreen API")}}
+ +

{{domxref("Document")}}接口的onfullscreenchange 属性是 {{event("fullscreenchange")}} 事件的处理器,该处理器在文档进入或者退出全屏模式的时候立即触发。

+ +

语法

+ +
targetDocument.onfullscreenchange = fullscreenChangeHandler;
+
+ +

Value

+ +

每当文档接收到{{event("fullscreenchange")}} 事件时都会调用该事件处理程序,它表明文档正在进入或退出全屏模式。

+ +

使用说明

+ +

fullscreenchange事件不会直接说明文档当前是进入还是退出全屏模式,因此你的事件处理程序应查看{{domxref("Document.fullscreenElement")}}的值。 如果为null,则该事件表示已退出全屏模式; 否则,指定的元素将接管屏幕。

+ +

示例

+ +
document.onfullscreenchange = function ( event ) {
+  console.log("FULL SCREEN CHANGE")
+};
+document.documentElement.onclick = function () {
+  // requestFullscreen() 方法必须在一个事件处理器的方法体里执行,否则将会失败
+  document.documentElement.requestFullscreen();
+}
+
+ +

规范

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName("Fullscreen", "#handler-document-onfullscreenchange", "onfullscreenchange")}}{{Spec2("HTML WHATWG")}}Initial definition.
+ +

Browser compatibility

+ +

{{Compat("api.Document.onfullscreenchange")}}

+ +

相关文章

+ + diff --git a/files/zh-cn/web/api/document/fullscreenerror_event/index.html b/files/zh-cn/web/api/document/fullscreenerror_event/index.html new file mode 100644 index 0000000000..acddbe6963 --- /dev/null +++ b/files/zh-cn/web/api/document/fullscreenerror_event/index.html @@ -0,0 +1,104 @@ +--- +title: Document.onfullscreenerror +slug: Web/API/Document/fullscreenerror_event +translation_of: Web/API/Document/onfullscreenerror +original_slug: Web/API/Document/onfullscreenerror +--- +
{{ApiRef("Fullscreen API")}}
+ +

Document.onfullscreenerror 属性是一个事件处理器用于处理 {{event("fullscreenchange")}} 事件,在当前文档不能进入全屏模式,即使它被请求时触发。

+ +

语法

+ +
targetDocument.onfullscreenerror = fullscreenErrorHandler;
+
+ +

示例

+ +
document.onfullscreenerror = function ( event ) {
+  console.log("FULL SCREEN DENIED")
+};
+
+// requestFullscreen()将会失败,因为它在事件处理器之外
+document.documentElement.requestFullscreen();
+
+ +

规范

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName("Fullscreen", "#handler-document-onfullscreenerror", "onfullscreenerror")}}{{Spec2("HTML WHATWG")}}Initial definition.
+ +

浏览器兼容性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatChrome(45)}}{{CompatGeckoDesktop("47")}}[1] (behind full-screen-api.unprefix.enabled{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Basic support{{CompatChrome(45)}}{{CompatChrome(45)}}{{CompatGeckoDesktop("47")}} [1] (behind full-screen-api.unprefix.enabled{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
+
+ +

[1] 在Firefox 49之前, 此属性从技术上来说属于{{domxref("GlobalEventHandlers")}}, 但把相关的事件处理器绑定在一个 {{domxref("Element")}}上时却永远不会触发.

+ +

相关文章

+ + diff --git a/files/zh-cn/web/api/document/onfullscreenchange/index.html b/files/zh-cn/web/api/document/onfullscreenchange/index.html deleted file mode 100644 index e012de078f..0000000000 --- a/files/zh-cn/web/api/document/onfullscreenchange/index.html +++ /dev/null @@ -1,66 +0,0 @@ ---- -title: Document.onfullscreenchange -slug: Web/API/Document/onfullscreenchange -tags: - - API - - Document - - onfullscreenchange -translation_of: Web/API/Document/onfullscreenchange ---- -
{{ApiRef("Fullscreen API")}}
- -

{{domxref("Document")}}接口的onfullscreenchange 属性是 {{event("fullscreenchange")}} 事件的处理器,该处理器在文档进入或者退出全屏模式的时候立即触发。

- -

语法

- -
targetDocument.onfullscreenchange = fullscreenChangeHandler;
-
- -

Value

- -

每当文档接收到{{event("fullscreenchange")}} 事件时都会调用该事件处理程序,它表明文档正在进入或退出全屏模式。

- -

使用说明

- -

fullscreenchange事件不会直接说明文档当前是进入还是退出全屏模式,因此你的事件处理程序应查看{{domxref("Document.fullscreenElement")}}的值。 如果为null,则该事件表示已退出全屏模式; 否则,指定的元素将接管屏幕。

- -

示例

- -
document.onfullscreenchange = function ( event ) {
-  console.log("FULL SCREEN CHANGE")
-};
-document.documentElement.onclick = function () {
-  // requestFullscreen() 方法必须在一个事件处理器的方法体里执行,否则将会失败
-  document.documentElement.requestFullscreen();
-}
-
- -

规范

- - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName("Fullscreen", "#handler-document-onfullscreenchange", "onfullscreenchange")}}{{Spec2("HTML WHATWG")}}Initial definition.
- -

Browser compatibility

- -

{{Compat("api.Document.onfullscreenchange")}}

- -

相关文章

- - diff --git a/files/zh-cn/web/api/document/onfullscreenerror/index.html b/files/zh-cn/web/api/document/onfullscreenerror/index.html deleted file mode 100644 index 341f7b0982..0000000000 --- a/files/zh-cn/web/api/document/onfullscreenerror/index.html +++ /dev/null @@ -1,103 +0,0 @@ ---- -title: Document.onfullscreenerror -slug: Web/API/Document/onfullscreenerror -translation_of: Web/API/Document/onfullscreenerror ---- -
{{ApiRef("Fullscreen API")}}
- -

Document.onfullscreenerror 属性是一个事件处理器用于处理 {{event("fullscreenchange")}} 事件,在当前文档不能进入全屏模式,即使它被请求时触发。

- -

语法

- -
targetDocument.onfullscreenerror = fullscreenErrorHandler;
-
- -

示例

- -
document.onfullscreenerror = function ( event ) {
-  console.log("FULL SCREEN DENIED")
-};
-
-// requestFullscreen()将会失败,因为它在事件处理器之外
-document.documentElement.requestFullscreen();
-
- -

规范

- - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName("Fullscreen", "#handler-document-onfullscreenerror", "onfullscreenerror")}}{{Spec2("HTML WHATWG")}}Initial definition.
- -

浏览器兼容性

- -

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatChrome(45)}}{{CompatGeckoDesktop("47")}}[1] (behind full-screen-api.unprefix.enabled{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Basic support{{CompatChrome(45)}}{{CompatChrome(45)}}{{CompatGeckoDesktop("47")}} [1] (behind full-screen-api.unprefix.enabled{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -

[1] 在Firefox 49之前, 此属性从技术上来说属于{{domxref("GlobalEventHandlers")}}, 但把相关的事件处理器绑定在一个 {{domxref("Element")}}上时却永远不会触发.

- -

相关文章

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