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) --- files/zh-cn/web/api/mouseevent/altkey/index.html | 48 +------------- files/zh-cn/web/api/mouseevent/buttons/index.html | 62 +----------------- files/zh-cn/web/api/mouseevent/ctrlkey/index.html | 48 +------------- .../web/api/mouseevent/initmouseevent/index.html | 48 +------------- files/zh-cn/web/api/mouseevent/metakey/index.html | 48 +------------- .../zh-cn/web/api/mouseevent/movementx/index.html | 60 +---------------- .../zh-cn/web/api/mouseevent/movementy/index.html | 58 +---------------- files/zh-cn/web/api/mouseevent/offsetx/index.html | 73 +-------------------- files/zh-cn/web/api/mouseevent/offsety/index.html | 73 +-------------------- files/zh-cn/web/api/mouseevent/pagex/index.html | 76 +--------------------- files/zh-cn/web/api/mouseevent/pagey/index.html | 76 +--------------------- files/zh-cn/web/api/mouseevent/shiftkey/index.html | 52 +-------------- files/zh-cn/web/api/mouseevent/x/index.html | 52 +-------------- files/zh-cn/web/api/mouseevent/y/index.html | 52 +-------------- 14 files changed, 14 insertions(+), 812 deletions(-) (limited to 'files/zh-cn/web/api/mouseevent') diff --git a/files/zh-cn/web/api/mouseevent/altkey/index.html b/files/zh-cn/web/api/mouseevent/altkey/index.html index 0ced8e2f28..0f1c41d5d7 100644 --- a/files/zh-cn/web/api/mouseevent/altkey/index.html +++ b/files/zh-cn/web/api/mouseevent/altkey/index.html @@ -69,53 +69,7 @@ You can also use the SHIFT key together with the ALT key.

浏览器兼容性

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureFirefox (Gecko)ChromeInternet ExplorerOperaSafari
Basic support{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}
-
- -
- - - - - - - - - - - - - - - - - - - -
FeatureFirefox Mobile (Gecko)AndroidIE MobileOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
+{{Compat("api.MouseEvent.altKey")}}

相关

diff --git a/files/zh-cn/web/api/mouseevent/buttons/index.html b/files/zh-cn/web/api/mouseevent/buttons/index.html index 2b21d3c59e..7e503718a0 100644 --- a/files/zh-cn/web/api/mouseevent/buttons/index.html +++ b/files/zh-cn/web/api/mouseevent/buttons/index.html @@ -52,67 +52,7 @@ translation_of: Web/API/MouseEvent/buttons

Browser compatibility

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureEdgeFirefox (Gecko)ChromeInternet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}[1]43[2]9{{CompatVersionUnknown}}{{CompatNo}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureEdgeFirefox Mobile (Gecko)AndroidIE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -

[1] Gecko supports the buttons attribute on Windows, Linux (GTK), and Mac OS with the following restrictions:

- - - -

[2] This feature got implemented in bug 276941.

+{{Compat("api.MouseEvent.buttons")}}

See also

diff --git a/files/zh-cn/web/api/mouseevent/ctrlkey/index.html b/files/zh-cn/web/api/mouseevent/ctrlkey/index.html index 183a6e61cd..de882fcae8 100644 --- a/files/zh-cn/web/api/mouseevent/ctrlkey/index.html +++ b/files/zh-cn/web/api/mouseevent/ctrlkey/index.html @@ -66,53 +66,7 @@ You can also use the SHIFT key together with the CTRL key.</p>

浏览器兼容性

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureFirefox (Gecko)ChromeInternet ExplorerOperaSafari
Basic support{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}
-
- -
- - - - - - - - - - - - - - - - - - - -
FeatureFirefox Mobile (Gecko)AndroidIE MobileOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
+{{Compat("api.MouseEvent.ctrlKey")}}

相关链接

diff --git a/files/zh-cn/web/api/mouseevent/initmouseevent/index.html b/files/zh-cn/web/api/mouseevent/initmouseevent/index.html index ffb87f8953..3a7347ef6a 100644 --- a/files/zh-cn/web/api/mouseevent/initmouseevent/index.html +++ b/files/zh-cn/web/api/mouseevent/initmouseevent/index.html @@ -115,53 +115,7 @@ simulateClick();//Why it can not show "input" ?

浏览器兼容性

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}{{ CompatUnknown() }}{{ CompatVersionUnknown() }}{{ CompatUnknown() }}
-
- -
- - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}{{ CompatUnknown() }}{{ CompatVersionUnknown() }}{{ CompatUnknown() }}
-
+{{Compat("api.MouseEvent.initMouseEvent")}}

参阅

diff --git a/files/zh-cn/web/api/mouseevent/metakey/index.html b/files/zh-cn/web/api/mouseevent/metakey/index.html index 3857a4f284..22c8025595 100644 --- a/files/zh-cn/web/api/mouseevent/metakey/index.html +++ b/files/zh-cn/web/api/mouseevent/metakey/index.html @@ -57,53 +57,7 @@ translation_of: Web/API/MouseEvent/metaKey

浏览器兼容性

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureFirefox (Gecko)ChromeInternet ExplorerOperaSafari
Basic support{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}
-
- -
- - - - - - - - - - - - - - - - - - - -
FeatureFirefox Mobile (Gecko)AndroidIE MobileOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
+{{Compat("api.MouseEvent.metaKey")}}

相关链接

diff --git a/files/zh-cn/web/api/mouseevent/movementx/index.html b/files/zh-cn/web/api/mouseevent/movementx/index.html index 084428207d..9b27d509e2 100644 --- a/files/zh-cn/web/api/mouseevent/movementx/index.html +++ b/files/zh-cn/web/api/mouseevent/movementx/index.html @@ -35,65 +35,7 @@ translation_of: Web/API/MouseEvent/movementX

浏览器兼容性

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatChrome(22.0)}} {{property_prefix("webkit")}}
- {{CompatChrome(37.0)}} unprefixed
{{CompatVersionUnknown}} -

{{CompatGeckoDesktop(1.0)}} {{property_prefix("moz")}}
- {{CompatGeckoDesktop(41)}}

-
{{ CompatNo() }}{{ CompatUnknown() }}{{ CompatNo() }}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroid WebviewEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatChrome(37)}}{{CompatVersionUnknown}}{{CompatGeckoMobile(1.0)}} {{property_prefix("moz")}}
- {{CompatGeckoMobile(41)}}
{{ CompatNo() }}{{ CompatUnknown() }}{{ CompatNo() }}{{CompatVersionUnknown}} {{property_prefix("webkit")}}
- {{CompatChrome(37.0)}} unprefixed
-
+{{Compat("api.MouseEvent.movementX")}}

相关

diff --git a/files/zh-cn/web/api/mouseevent/movementy/index.html b/files/zh-cn/web/api/mouseevent/movementy/index.html index 1faaccff17..a3b2d1df74 100644 --- a/files/zh-cn/web/api/mouseevent/movementy/index.html +++ b/files/zh-cn/web/api/mouseevent/movementy/index.html @@ -35,63 +35,7 @@ translation_of: Web/API/MouseEvent/movementY

浏览器兼容性

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatChrome(22.0)}} {{property_prefix("webkit")}}
- {{CompatChrome(37.0)}} unprefixed
{{CompatVersionUnknown}}{{CompatGeckoDesktop(1.0)}} {{property_prefix("moz")}}
- {{CompatGeckoDesktop(41)}}
{{ CompatNo() }}{{ CompatUnknown() }}{{ CompatNo() }}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroid WebviewEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatChrome(37.0)}}{{CompatVersionUnknown}}{{CompatGeckoMobile(1.0)}} {{property_prefix("moz")}}
- {{CompatGeckoMobile(41)}}
{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{CompatVersionUnknown}} {{property_prefix("webkit")}}
- {{CompatChrome(37.0)}} unprefixed
-
+{{Compat("api.MouseEvent.movementY")}}

相关

diff --git a/files/zh-cn/web/api/mouseevent/offsetx/index.html b/files/zh-cn/web/api/mouseevent/offsetx/index.html index 28c6719863..7f2f545fe4 100644 --- a/files/zh-cn/web/api/mouseevent/offsetx/index.html +++ b/files/zh-cn/web/api/mouseevent/offsetx/index.html @@ -40,78 +40,7 @@ translation_of: Web/API/MouseEvent/offsetX

浏览器兼容性

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatGeckoDesktop("39.0")}}6{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}
Redefined from long to double{{CompatChrome(56)}}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroid WebviewChrome for AndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatGeckoMobile("43.0")}}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
Redefined from long to double{{CompatChrome(56)}}{{CompatChrome(56)}}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
+{{Compat("api.MouseEvent.offsetX")}}

相关内容

diff --git a/files/zh-cn/web/api/mouseevent/offsety/index.html b/files/zh-cn/web/api/mouseevent/offsety/index.html index 7b1eab0450..b824bd23d2 100644 --- a/files/zh-cn/web/api/mouseevent/offsety/index.html +++ b/files/zh-cn/web/api/mouseevent/offsety/index.html @@ -39,78 +39,7 @@ translation_of: Web/API/MouseEvent/offsetY

浏览器兼容性

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatGeckoDesktop("39.0")}}6{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}
Redefined from long to double{{CompatChrome(56)}}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroid WebviewChrome for AndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatGeckoMobile("43.0")}}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
Redefined from long to double{{CompatChrome(56)}}{{CompatChrome(56)}}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
+{{Compat("api.MouseEvent.offsetY")}}

相关内容

diff --git a/files/zh-cn/web/api/mouseevent/pagex/index.html b/files/zh-cn/web/api/mouseevent/pagex/index.html index 06e933334d..a50ea9e16e 100644 --- a/files/zh-cn/web/api/mouseevent/pagex/index.html +++ b/files/zh-cn/web/api/mouseevent/pagex/index.html @@ -43,81 +43,7 @@ translation_of: Web/API/MouseEvent/pageX

浏览器兼容性

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatChrome(45.0)}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}9{{CompatVersionUnknown}}{{CompatVersionUnknown}}
Redefined from long to double{{CompatChrome(56)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroid WebviewChrome for AndroidEdgeFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Basic support{{CompatChrome(45.0)}}{{CompatChrome(45.0)}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
Redefined from long to double{{CompatChrome(56)}}{{CompatChrome(56)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
+{{Compat("api.MouseEvent.pageX")}}

参考

diff --git a/files/zh-cn/web/api/mouseevent/pagey/index.html b/files/zh-cn/web/api/mouseevent/pagey/index.html index 22a862d9eb..585be5b10a 100644 --- a/files/zh-cn/web/api/mouseevent/pagey/index.html +++ b/files/zh-cn/web/api/mouseevent/pagey/index.html @@ -39,81 +39,7 @@ translation_of: Web/API/MouseEvent/pageY

浏览器兼容性

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatChrome(45)}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}9{{CompatVersionUnknown}}{{CompatVersionUnknown}}
Redefined from long to double{{CompatChrome(56)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroid WebviewChrome for AndroidEdgeFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Basic support{{CompatChrome(45.)}}{{CompatChrome(45)}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
Redefined from long to double{{CompatChrome(56)}}{{CompatChrome(56)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
+{{Compat("api.MouseEvent.pageY")}}

更多请见

diff --git a/files/zh-cn/web/api/mouseevent/shiftkey/index.html b/files/zh-cn/web/api/mouseevent/shiftkey/index.html index a31ab83fb1..a4d278cb2c 100644 --- a/files/zh-cn/web/api/mouseevent/shiftkey/index.html +++ b/files/zh-cn/web/api/mouseevent/shiftkey/index.html @@ -68,57 +68,7 @@ You can also use the SHIFT key together with the ALT key.</p>

Browser compatibility

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureEdgeFirefox (Gecko)ChromeInternet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureEdgeFirefox Mobile (Gecko)AndroidIE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
+{{Compat("api.MouseEvent.shiftKey")}}

See also

diff --git a/files/zh-cn/web/api/mouseevent/x/index.html b/files/zh-cn/web/api/mouseevent/x/index.html index bd2e29dd21..34eb5140b6 100644 --- a/files/zh-cn/web/api/mouseevent/x/index.html +++ b/files/zh-cn/web/api/mouseevent/x/index.html @@ -26,54 +26,4 @@ translation_of: Web/API/MouseEvent/x

浏览器兼容性

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureEdgeFirefox (Gecko)ChromeInternet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatGeckoDesktop(53)}}{{CompatVersionUnknown}}6{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureEdgeFirefox Mobile (Gecko)AndroidIE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatGeckoMobile(53)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
+{{Compat("api.MouseEvent.x")}} diff --git a/files/zh-cn/web/api/mouseevent/y/index.html b/files/zh-cn/web/api/mouseevent/y/index.html index e7dfc7bd85..726e488476 100644 --- a/files/zh-cn/web/api/mouseevent/y/index.html +++ b/files/zh-cn/web/api/mouseevent/y/index.html @@ -30,54 +30,4 @@ translation_of: Web/API/MouseEvent/y

浏览器兼容性

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureEdgeFirefox (Gecko)ChromeInternet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatGeckoDesktop(53)}}{{CompatVersionUnknown}}6{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureEdgeFirefox Mobile (Gecko)AndroidIE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatGeckoMobile(53)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
+{{Compat("api.MouseEvent.y")}} -- cgit v1.2.3-54-g00ecf