From 9a110dee28ae2ef12ee014b98fda6bae6ee48edb Mon Sep 17 00:00:00 2001 From: YujiSoftware Date: Wed, 2 Mar 2022 20:22:51 +0900 Subject: Migrate to Compat macro (zh-cn) --- .../api/document/caretrangefrompoint/index.html | 58 +--------------- .../zh-cn/web/api/document/characterset/index.html | 79 +--------------------- .../web/api/document/createelementns/index.html | 67 +----------------- files/zh-cn/web/api/document/dir/index.html | 50 +------------- files/zh-cn/web/api/document/drag_event/index.html | 54 +-------------- .../web/api/document/dragend_event/index.html | 56 +-------------- .../web/api/document/dragenter_event/index.html | 54 +-------------- .../web/api/document/dragleave_event/index.html | 54 +-------------- .../web/api/document/dragover_event/index.html | 54 +-------------- .../web/api/document/dragstart_event/index.html | 54 +-------------- files/zh-cn/web/api/document/drop_event/index.html | 54 +-------------- .../web/api/document/exitfullscreen/index.html | 57 +--------------- .../web/api/document/exitpointerlock/index.html | 61 +---------------- files/zh-cn/web/api/document/fullscreen/index.html | 66 +----------------- .../web/api/document/fullscreenelement/index.html | 58 +--------------- .../web/api/document/fullscreenenabled/index.html | 59 +--------------- .../api/document/fullscreenerror_event/index.html | 54 +-------------- files/zh-cn/web/api/document/hasfocus/index.html | 56 +-------------- files/zh-cn/web/api/document/head/index.html | 47 +------------ files/zh-cn/web/api/document/location/index.html | 47 +------------ files/zh-cn/web/api/document/origin/index.html | 50 +------------- .../web/api/document/pointerlockelement/index.html | 61 +---------------- .../web/api/document/querycommandstate/index.html | 54 +-------------- .../api/document/querycommandsupported/index.html | 48 +------------ files/zh-cn/web/api/document/scripts/index.html | 49 +------------- .../web/api/document/scrollingelement/index.html | 58 +--------------- .../api/document/selectionchange_event/index.html | 75 +------------------- .../web/api/document/selectstart_event/index.html | 54 +-------------- .../web/api/document/touchmove_event/index.html | 54 +-------------- 29 files changed, 31 insertions(+), 1611 deletions(-) (limited to 'files/zh-cn/web/api/document') diff --git a/files/zh-cn/web/api/document/caretrangefrompoint/index.html b/files/zh-cn/web/api/document/caretrangefrompoint/index.html index c765353a08..dd72e43bca 100644 --- a/files/zh-cn/web/api/document/caretrangefrompoint/index.html +++ b/files/zh-cn/web/api/document/caretrangefrompoint/index.html @@ -79,60 +79,4 @@ for (i=0 ; i < paragraphs.length; i++) {

浏览器兼容性

-
{{CompatibilityTable}}
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerEdgeOperaSafari (WebKit)
Basic support{{CompatChrome(43.0)}}20+{{CompatNo()}}1215+{{CompatVersionUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidChrome for AndroidEdgeFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatChrome(43.0)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -

 

+{{Compat("api.Document.caretRangeFromPoint")}} diff --git a/files/zh-cn/web/api/document/characterset/index.html b/files/zh-cn/web/api/document/characterset/index.html index 8484a07d72..f05991e287 100644 --- a/files/zh-cn/web/api/document/characterset/index.html +++ b/files/zh-cn/web/api/document/characterset/index.html @@ -42,81 +42,4 @@ translation_of: Web/API/Document/characterSet

浏览器兼容性

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
基本支持{{CompatChrome(45.0)}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}9 (possibly earlier)
字符集Made read-only in {{CompatChrome(45)}}{{CompatVersionUnknown}}{{CompatGeckoDesktop(44)}}{{CompatUnknown}}{{CompatUnknown}}9 (possibly earlier)
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidAndroid WebviewEdgeFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari MobileChrome for Android
基本支持{{CompatNo}}{{CompatChrome(45.0)}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatChrome(45.0)}}
字符集{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}{{CompatGeckoMobile(44)}}2.5{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
+{{Compat("api.Document.characterSet")}} diff --git a/files/zh-cn/web/api/document/createelementns/index.html b/files/zh-cn/web/api/document/createelementns/index.html index 1a4f11c616..07a2dbad0a 100644 --- a/files/zh-cn/web/api/document/createelementns/index.html +++ b/files/zh-cn/web/api/document/createelementns/index.html @@ -102,72 +102,7 @@ translation_of: Web/API/Document/createElementNS

浏览器兼容性

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
options argument{{CompatVersionUnknown}}[1]{{CompatNo}}{{CompatGeckoDesktop(50)}}[2][3]{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidEdgeFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
- -

[1]在本规范的早期版本中,此参数只是一个字符串,其值是自定义元素的标签名称。为了向后兼容性,Chrome同时接受这两种格式。

- -

[2] 参阅[1]:像Chrome一样,Firefox从51版开始在这里接受一个字符串而不是一个对象。但是在版本50中,选项必须是对象。

- -

[3] 要在Firefox中实验自定义元素,必须将dom.webcomponents.enabled和dom.webcomponents.customelements.enabled首选项设置为true。

+{{Compat("api.Document.createElementNS")}}

相关链接

diff --git a/files/zh-cn/web/api/document/dir/index.html b/files/zh-cn/web/api/document/dir/index.html index c16c102435..59b673a6fd 100644 --- a/files/zh-cn/web/api/document/dir/index.html +++ b/files/zh-cn/web/api/document/dir/index.html @@ -41,55 +41,7 @@ document.dir = "rtl";

浏览器兼容性

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatUnknown}}{{CompatVersionUnknown}} [1]{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{CompatVersionUnknown}} [1]{{ CompatVersionUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
- -

[1] 在Firefox 23之前, Document.dir属性返回 "ltr" 无论在根元素{{htmlelement("html")}} 的dir属性上如何设置。 并且如果在文档标签<html>上设置了方向, Document.dir在改变时不会生效(虽然随后检索Document.dir属性发现他的确改变了)。 但是, 如果这个属性没有被设置在标签 <html> 上并且改变的该属性状态, 无论是页面可是区域的改变还是Document.dir属性的改变都会正确的反映这一变化。

+{{Compat("api.Document.dir")}}

参见

diff --git a/files/zh-cn/web/api/document/drag_event/index.html b/files/zh-cn/web/api/document/drag_event/index.html index 906df8743d..71da767e2e 100644 --- a/files/zh-cn/web/api/document/drag_event/index.html +++ b/files/zh-cn/web/api/document/drag_event/index.html @@ -262,59 +262,7 @@ translation_of: Web/API/Document/drag_event

浏览器支持

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support4{{CompatGeckoDesktop("1.9.1")}}10123.1
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatIE("10")}}{{CompatNo}}{{CompatNo}}
-
+{{Compat("api.Document.drag_event")}}

相关

diff --git a/files/zh-cn/web/api/document/dragend_event/index.html b/files/zh-cn/web/api/document/dragend_event/index.html index a42129345d..3933d967b9 100644 --- a/files/zh-cn/web/api/document/dragend_event/index.html +++ b/files/zh-cn/web/api/document/dragend_event/index.html @@ -184,61 +184,7 @@ translation_of: Web/API/Document/dragend_event

浏览器支持

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support4{{CompatGeckoDesktop("1.9.1")}}[1]10123.1
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatIE("10")}}{{CompatNo}}{{CompatNo}}
-
- -

[1] In Gecko, dragend is not dispatched if the source node is moved or removed during the drag (e.g. on drop or dragover). See {{bug("460801")}}.

+{{Compat("api.Document.dragend_event")}}

相关

diff --git a/files/zh-cn/web/api/document/dragenter_event/index.html b/files/zh-cn/web/api/document/dragenter_event/index.html index 1cd2fce638..9dedd38034 100644 --- a/files/zh-cn/web/api/document/dragenter_event/index.html +++ b/files/zh-cn/web/api/document/dragenter_event/index.html @@ -181,59 +181,7 @@ translation_of: Web/API/Document/dragenter_event

浏览器支持

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support4{{CompatGeckoDesktop("1.9.1")}}10123.1
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatIE("10")}}{{CompatNo}}{{CompatNo}}
-
+{{Compat("api.Document.dragenter_event")}}

相关

diff --git a/files/zh-cn/web/api/document/dragleave_event/index.html b/files/zh-cn/web/api/document/dragleave_event/index.html index 36f2995a13..e9ab3f20dc 100644 --- a/files/zh-cn/web/api/document/dragleave_event/index.html +++ b/files/zh-cn/web/api/document/dragleave_event/index.html @@ -183,59 +183,7 @@ translation_of: Web/API/Document/dragleave_event

浏览器支持

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support4{{CompatGeckoDesktop("1.9.1")}}10123.1
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatIE("10")}}{{CompatNo}}{{CompatNo}}
-
+{{Compat("api.Document.dragleave_event")}}

相关

diff --git a/files/zh-cn/web/api/document/dragover_event/index.html b/files/zh-cn/web/api/document/dragover_event/index.html index ff219820c0..7b0eb7d4f5 100644 --- a/files/zh-cn/web/api/document/dragover_event/index.html +++ b/files/zh-cn/web/api/document/dragover_event/index.html @@ -185,59 +185,7 @@ translation_of: Web/API/Document/dragover_event

浏览器支持

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support4{{CompatGeckoDesktop("1.9.1")}}10123.1
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatIE("10")}}{{CompatNo}}{{CompatNo}}
-
+{{Compat("api.Document.dragover_event")}}

相关

diff --git a/files/zh-cn/web/api/document/dragstart_event/index.html b/files/zh-cn/web/api/document/dragstart_event/index.html index 15ec167d42..43631b0e62 100644 --- a/files/zh-cn/web/api/document/dragstart_event/index.html +++ b/files/zh-cn/web/api/document/dragstart_event/index.html @@ -240,59 +240,7 @@ translation_of: Web/API/Document/dragstart_event

浏览器支持

-
{{CompatibilityTable}}
- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support4{{CompatGeckoDesktop("1.9.1")}}10123.1
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatIE("10")}}{{CompatNo}}{{CompatNo}}
-
+{{Compat("api.Document.dragstart_event")}}

相关事件

diff --git a/files/zh-cn/web/api/document/drop_event/index.html b/files/zh-cn/web/api/document/drop_event/index.html index 3016333f51..2a7b6a302f 100644 --- a/files/zh-cn/web/api/document/drop_event/index.html +++ b/files/zh-cn/web/api/document/drop_event/index.html @@ -187,59 +187,7 @@ translation_of: Web/API/Document/drop_event

浏览器支持

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support4{{CompatGeckoDesktop("1.9.1")}}10123.1
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatIE("10")}}{{CompatNo}}{{CompatNo}}
-
+{{Compat("api.Document.drop_event")}}

相关

diff --git a/files/zh-cn/web/api/document/exitfullscreen/index.html b/files/zh-cn/web/api/document/exitfullscreen/index.html index 4cf18e65ff..c691c88bb5 100644 --- a/files/zh-cn/web/api/document/exitfullscreen/index.html +++ b/files/zh-cn/web/api/document/exitfullscreen/index.html @@ -44,62 +44,7 @@ document.onclick = function (event) {

浏览器兼容性

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{property_prefix("-webkit")}}
- {{CompatChrome(45)}} (unprefixed)
{{CompatGeckoDesktop("9.0")}} as mozCancelFullScreen[1]
- {{CompatGeckoDesktop("47.0")}}[1] (behind full-screen-api.unprefix.enabled
{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroid WebkitChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{property_prefix("-webkit")}}
- {{CompatChrome(45)}} (unprefixed)
{{CompatVersionUnknown}}{{property_prefix("-webkit")}}
- {{CompatChrome(45)}} (unprefixed)
{{CompatGeckoMobile("9.0")}} as mozCancelFullScreen[1]
- {{CompatGeckoMobile("47.0")}}[1] (behind full-screen-api.unprefix.enabled
{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -

[1] 可通过Document.exitFullscreen()方法让全屏元素栈的栈顶元素退出全屏状态,并让新的栈顶的元素进入全屏状态。此特征在Gecko 11.0 {{geckoRelease("11.0")}}中被实现.

+{{Compat("api.Document.exitFullscreen")}}

参阅

diff --git a/files/zh-cn/web/api/document/exitpointerlock/index.html b/files/zh-cn/web/api/document/exitpointerlock/index.html index 0a99a81ea2..b433f80ceb 100644 --- a/files/zh-cn/web/api/document/exitpointerlock/index.html +++ b/files/zh-cn/web/api/document/exitpointerlock/index.html @@ -35,66 +35,7 @@ translation_of: Web/API/Document/exitPointerLock

浏览器兼容性

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{ CompatVersionUnknown() }} {{property_prefix("webkit")}}{{CompatVersionUnknown}}{{ CompatVersionUnknown() }} {{property_prefix("moz")}}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
Unprefixed support{{ CompatVersionUnknown() }}{{CompatUnknown}}{{CompatGeckoDesktop(50)}}   
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{CompatVersionUnknown}}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
+{{Compat("api.Document.exitPointerLock")}}

参见

diff --git a/files/zh-cn/web/api/document/fullscreen/index.html b/files/zh-cn/web/api/document/fullscreen/index.html index f1d6edc436..0a162fae76 100644 --- a/files/zh-cn/web/api/document/fullscreen/index.html +++ b/files/zh-cn/web/api/document/fullscreen/index.html @@ -42,68 +42,4 @@ original_slug: Web/API/Document/mozFullScreen

浏览器兼容性

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{ CompatUnknown() }}{{ CompatGeckoDesktop("9.0") }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
- -
- - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{ CompatGeckoMobile("9.0") }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
- -

规范

- -

不属于任何公开的规范

- -

相关链接

- - - -

{{ languages( {"en": "en/DOM/document.mozFullScreen" } ) }}

+{{Compat("api.Document.fullscreen")}} diff --git a/files/zh-cn/web/api/document/fullscreenelement/index.html b/files/zh-cn/web/api/document/fullscreenelement/index.html index 8e84782789..45a1879029 100644 --- a/files/zh-cn/web/api/document/fullscreenelement/index.html +++ b/files/zh-cn/web/api/document/fullscreenelement/index.html @@ -19,60 +19,4 @@ original_slug: Web/API/DocumentOrShadowRoot/fullscreenElement

辅助

查看使用"全屏模式"页面了解详情.

浏览器兼容性

-

{{ CompatibilityTable() }}

-
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{ CompatUnknown() }}{{ CompatGeckoDesktop("9.0") }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
-
- - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{ CompatGeckoMobile("9.0") }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
-

规范

-

该方法提案已经进入相关规范草案 http://dvcs.w3.org/hg/fullscrezh-CN/raw-file/tip/Overview.html#dom-document-fullscreenelement

-

相关链接

- +{{Compat("api.Document.fullscreenElement")}} diff --git a/files/zh-cn/web/api/document/fullscreenenabled/index.html b/files/zh-cn/web/api/document/fullscreenenabled/index.html index 244abe8e26..c8a4525f82 100644 --- a/files/zh-cn/web/api/document/fullscreenenabled/index.html +++ b/files/zh-cn/web/api/document/fullscreenenabled/index.html @@ -23,61 +23,4 @@ original_slug: Web/API/Document/mozFullScreenEnabled

备注

进入页面使用全屏模式查看详情和示例.

浏览器兼容性

-

{{ CompatibilityTable() }}

-
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{ CompatUnknown() }}{{ CompatGeckoDesktop("10.0") }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
-
- - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{ CompatGeckoMobile("10.0") }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
-

规范

-

该方法在规范草案 http://dvcs.w3.org/hg/fullscrezh-cn/raw-file/tip/Overview.html#dom-document-fullscreenenabled 中被提出.

-

相关链接

- -

{{ languages( { "en": "en/DOM/document.mozFullScreenEnabled" } ) }}

+{{Compat("api.Document.fullscreenEnabled")}} diff --git a/files/zh-cn/web/api/document/fullscreenerror_event/index.html b/files/zh-cn/web/api/document/fullscreenerror_event/index.html index acddbe6963..1c5066ceed 100644 --- a/files/zh-cn/web/api/document/fullscreenerror_event/index.html +++ b/files/zh-cn/web/api/document/fullscreenerror_event/index.html @@ -42,59 +42,7 @@ document.documentElement.requestFullscreen();

浏览器兼容性

-

{{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")}}上时却永远不会触发.

+{{Compat("api.Document.fullscreenerror_event")}}

相关文章

diff --git a/files/zh-cn/web/api/document/hasfocus/index.html b/files/zh-cn/web/api/document/hasfocus/index.html index e7386bd4d1..ec78276982 100644 --- a/files/zh-cn/web/api/document/hasfocus/index.html +++ b/files/zh-cn/web/api/document/hasfocus/index.html @@ -65,58 +65,4 @@ translation_of: Web/API/Document/hasFocus

浏览器兼容性

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{ CompatVersionUnknown() }}{{ CompatGeckoDesktop("1.9") }}6.0{{ CompatNo() }}{{ CompatVersionUnknown() }}
-
- -
- - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{ CompatGeckoMobile("1.9") }}{{ CompatUnknown() }}{{ CompatNo() }}{{ CompatUnknown() }}
-
- -

规范

- - - -

{{ languages( { "en": "en/DOM/document.hasFocus","es": "es/DOM/element.hasFocus", "fr": "fr/DOM/document.hasFocus", "ja": "ja/DOM/document.hasFocus", "pl": "pl/DOM/document.hasFocus" } ) }}

+{{Compat("api.Document.hasFocus")}} diff --git a/files/zh-cn/web/api/document/head/index.html b/files/zh-cn/web/api/document/head/index.html index 30eac3f791..48d4df94de 100644 --- a/files/zh-cn/web/api/document/head/index.html +++ b/files/zh-cn/web/api/document/head/index.html @@ -21,51 +21,8 @@ alert( document.head === document.querySelector("head") ); // true

document.head 是个只读属性,为该属性赋值只会静默失败,如果在严格模式中,则会抛出TypeError异常。

浏览器兼容性

- {{CompatibilityTable}}
-
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support4.0{{CompatGeckoDesktop("2")}}9.011.05.0
-
-
- - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatGeckoMobile("2")}}9.0{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
+{{Compat("api.Document.head")}} +

规范