aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/navigator
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/navigator')
-rw-r--r--files/zh-cn/web/api/navigator/credentials/index.html54
-rw-r--r--files/zh-cn/web/api/navigator/donottrack/index.html55
-rw-r--r--files/zh-cn/web/api/navigator/geolocation/index.html2
-rw-r--r--files/zh-cn/web/api/navigator/getbattery/index.html62
-rw-r--r--files/zh-cn/web/api/navigator/getgamepads/index.html60
-rw-r--r--files/zh-cn/web/api/navigator/getusermedia/index.html62
-rw-r--r--files/zh-cn/web/api/navigator/maxtouchpoints/index.html56
-rw-r--r--files/zh-cn/web/api/navigator/mediadevices/index.html60
-rw-r--r--files/zh-cn/web/api/navigator/permissions/index.html56
-rw-r--r--files/zh-cn/web/api/navigator/serviceworker/index.html54
-rw-r--r--files/zh-cn/web/api/navigator/vibrate/index.html60
11 files changed, 11 insertions, 570 deletions
diff --git a/files/zh-cn/web/api/navigator/credentials/index.html b/files/zh-cn/web/api/navigator/credentials/index.html
index c27009d5f1..1389dcb1db 100644
--- a/files/zh-cn/web/api/navigator/credentials/index.html
+++ b/files/zh-cn/web/api/navigator/credentials/index.html
@@ -46,56 +46,4 @@ translation_of: Web/API/Navigator/credentials
<h2 id="Browser_compatibility">Browser compatibility</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome(51.0)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Android Webview</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Firefox OS</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- <th>Chrome for Android</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatChrome(51.0)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatChrome(51.0)}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.Navigator.credentials")}}
diff --git a/files/zh-cn/web/api/navigator/donottrack/index.html b/files/zh-cn/web/api/navigator/donottrack/index.html
index 5b6535ae97..1c1eabd8bb 100644
--- a/files/zh-cn/web/api/navigator/donottrack/index.html
+++ b/files/zh-cn/web/api/navigator/donottrack/index.html
@@ -34,57 +34,4 @@ translation_of: Web/API/Navigator/doNotTrack
<h3 id="浏览器兼容性">浏览器兼容性</h3>
-<p>{{ CompatibilityTable() }}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatGeckoDesktop("9.0") }}</td>
- <td>9</td>
- <td>12</td>
- <td>5.1 on OS X 10.7</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatGeckoMobile("9.0") }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<ul>
- <li>IE9 中该属性带有ms前缀:navigator.msDoNotTrack</li>
- <li>IE9, Opera 12和Safari 5.1 实现了早起的旧版本规范:<code>navigator.doNotTrack</code> 的值就是 do-not-track 请求头中的值.</li>
-</ul>
-
-<p>{{ languages( { "en": "en/DOM/navigator.doNotTrack" } ) }}</p>
+{{Compat("api.Navigator.doNotTrack")}}
diff --git a/files/zh-cn/web/api/navigator/geolocation/index.html b/files/zh-cn/web/api/navigator/geolocation/index.html
index 89842d99bd..2739d0f768 100644
--- a/files/zh-cn/web/api/navigator/geolocation/index.html
+++ b/files/zh-cn/web/api/navigator/geolocation/index.html
@@ -47,7 +47,7 @@ translation_of: Web/API/Navigator/geolocation
-<p>{{ CompatibilityTable() }}</p>
+{{Compat("api.Navigator.geolocation")}}
<h2 id="另请参阅">另请参阅</h2>
diff --git a/files/zh-cn/web/api/navigator/getbattery/index.html b/files/zh-cn/web/api/navigator/getbattery/index.html
index 29b6b46c0d..8223faab3e 100644
--- a/files/zh-cn/web/api/navigator/getbattery/index.html
+++ b/files/zh-cn/web/api/navigator/getbattery/index.html
@@ -34,67 +34,7 @@ translation_of: Web/API/Navigator/getBattery
<h2 id="浏览器兼容">浏览器兼容</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>浏览器</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>功能支持</td>
- <td>{{CompatChrome(39.0)}}</td>
- <td>{{CompatGeckoDesktop("10")}} {{property_prefix("moz")}}<br>
- {{CompatGeckoDesktop("16")}}<sup>[1]</sup><br>
- {{CompatGeckoDesktop("43")}}<sup>[2]</sup></td>
- <td>{{CompatNo}}</td>
- <td>25</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>浏览器</th>
- <th>Android</th>
- <th>Android Webview</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- <th>Chrome for Android</th>
- </tr>
- <tr>
- <td>功能支持</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatChrome(40.0)}}</td>
- <td>
- <p>{{CompatGeckoMobile("10")}} {{property_prefix("moz")}}<br>
- {{CompatGeckoMobile("16")}}<sup>[1]</sup><br>
- {{CompatGeckoDesktop("43")}}<sup>[2]</sup></p>
- </td>
- <td>{{CompatNo}}</td>
- <td>25</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatChrome(42.0)}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] 在 Firefox 10.0 被默认禁止, 但可以设置<code>dom.battery.enabled<font face="Open Sans, Arial, sans-serif"> = </font></code><code>true来启用</code>. 从Starting with Firefox 11.0开始, <code>mozBattery</code> 是默认启动的. UPower 安装后, Android, Windows, and Linux.就支持Battery API了。MacOS的支持是从Gecko 18.0 {{geckoRelease("18.0")}}开始的. fireFox依然支持已经被弃用 {{domxref("navigator.battery")}}.</p>
-
-<p>[2] 全新的基于promise语法的{{domxref("Navigator.getBattery()")}}在FireFox 43 被支持。</p>
+{{Compat("api.Navigator.getBattery")}}
<h2 id="请参见">请参见</h2>
diff --git a/files/zh-cn/web/api/navigator/getgamepads/index.html b/files/zh-cn/web/api/navigator/getgamepads/index.html
index 454b4f4329..4d5b5672ca 100644
--- a/files/zh-cn/web/api/navigator/getgamepads/index.html
+++ b/files/zh-cn/web/api/navigator/getgamepads/index.html
@@ -39,65 +39,7 @@ translation_of: Web/API/Navigator/getGamepads
<h2 id="Browser_compatibility" name="Browser_compatibility">浏览器兼容性</h2>
-<p>{{ CompatibilityTable() }}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>General support</td>
- <td>
- <p>21.0 {{ property_prefix("webkit") }}<br>
- 35.0</p>
- </td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{ CompatGeckoDesktop("29.0") }} [1]</td>
- <td>{{ CompatNo() }}</td>
- <td>
- <p>15.0 {{ property_prefix("webkit") }}<br>
- 22.0</p>
- </td>
- <td>{{ CompatNo() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Edge</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>General support</td>
- <td>{{ CompatNo() }}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- <td>{{ CompatNo() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] 自 Firefox 24 起可以通过偏好设置启用。</p>
+{{Compat("api.Navigator.getGamepads")}}
<h2 id="另请参阅">另请参阅</h2>
diff --git a/files/zh-cn/web/api/navigator/getusermedia/index.html b/files/zh-cn/web/api/navigator/getusermedia/index.html
index 11d597fcfc..4e2ee9de8b 100644
--- a/files/zh-cn/web/api/navigator/getusermedia/index.html
+++ b/files/zh-cn/web/api/navigator/getusermedia/index.html
@@ -126,67 +126,7 @@ if (navigator.getUserMedia) {
<p>新代码应当使用 {{domxref("Navigator.mediaDevices.getUserMedia()")}} 替代.</p>
</div>
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table>
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>21{{property_prefix("webkit")}} [1]</td>
- <td>17{{property_prefix("moz")}} [3]</td>
- <td>{{CompatNo}}</td>
- <td>12 [2]<br>
- 18{{property_prefix("webkit")}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-<div id="compat-mobile">
-<table>
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Android Webview</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Firefox OS (Gecko)</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- <th>Chrome for Android</th>
- </tr>
- <tr>
- <td>Basic Support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatChrome(40.0)}}{{property_prefix("webkit")}} [2]</td>
- <td>24{{property_prefix("moz")}} [3]</td>
- <td>1.2{{property_prefix("moz")}} [4]<br>
- 1.4{{property_prefix("moz")}}</td>
- <td>{{CompatNo}}</td>
- <td>12 [2]</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-<p>[1] 新版的Chrome支持未带前缀的 {{domxref("MediaDevices.getUserMedia()")}}, 用以取代此已废弃版本.</p>
-
-<p>[2] Chrome 和 Opera 仍然在使用已经过期的 constraint 语法, 但是此描述中的语法可以通过 <a href="https://github.com/webrtc/adapter">adapter.js</a> polyfill来使用.</p>
-
-<p>[3]  在此描述的constraint 语法自 Firefox 38后可用. 更早的版本 (32-37) 使用了已经过期的语法, 但是此描述中的语法可以通过 <a href="https://github.com/webrtc/adapter">adapter.js</a> polyfill来使用.</p>
-
-<p>[4] 在 Firefox OS 1.2中, 只有音频的到支持, 1.4 添加了视频支持.</p>
+{{Compat("api.Navigator.getUserMedia")}}
<h2 id="更多参见">更多参见 </h2>
diff --git a/files/zh-cn/web/api/navigator/maxtouchpoints/index.html b/files/zh-cn/web/api/navigator/maxtouchpoints/index.html
index 49e0d303ba..6e87be8151 100644
--- a/files/zh-cn/web/api/navigator/maxtouchpoints/index.html
+++ b/files/zh-cn/web/api/navigator/maxtouchpoints/index.html
@@ -43,58 +43,4 @@ translation_of: Web/API/Navigator/maxTouchPoints
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome("35")}}<sup>[1]</sup></td>
- <td>{{CompatGeckoDesktop("29")}}<sup>[2]</sup></td>
- <td>10 {{property_prefix("-ms")}}<br>
- 11</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatChrome("35")}}<sup>[1]</sup></td>
- <td>{{CompatGeckoMobile("29")}}<sup>[2]</sup></td>
- <td>10 {{property_prefix("-ms")}}<br>
- 11</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] This was implemented in <a href="http://crbug.com/248918">bug 248918</a>.</p>
-
-<p>[2] Gecko supports this feature behind the preference <code>dom.w3c_pointer_events.enabled</code>, defaulting to <code>false</code>.</p>
+{{Compat("api.Navigator.maxTouchPoints")}}
diff --git a/files/zh-cn/web/api/navigator/mediadevices/index.html b/files/zh-cn/web/api/navigator/mediadevices/index.html
index f8df63585c..6a7ee73381 100644
--- a/files/zh-cn/web/api/navigator/mediadevices/index.html
+++ b/files/zh-cn/web/api/navigator/mediadevices/index.html
@@ -47,65 +47,7 @@ translation_of: Web/API/Navigator/mediaDevices
<h2 id="浏览器兼容">浏览器兼容</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Microsoft Edge</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome(51.0)}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("36.0")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Android Webview</th>
- <th>Edge</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Firefox OS</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- <th>Chrome for Android</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("36.0")}}</td>
- <td>{{CompatGeckoMobile("36.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("api.Navigator.mediaDevices")}}
<h2 id="参考阅读">参考阅读</h2>
diff --git a/files/zh-cn/web/api/navigator/permissions/index.html b/files/zh-cn/web/api/navigator/permissions/index.html
index bd4510a159..3a5bba3685 100644
--- a/files/zh-cn/web/api/navigator/permissions/index.html
+++ b/files/zh-cn/web/api/navigator/permissions/index.html
@@ -51,61 +51,7 @@ translation_of: Web/API/Navigator/permissions
<h2 id="浏览器支持">浏览器支持</h2>
-<div>{{ CompatibilityTable() }}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>功能</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>基础支持</td>
- <td>{{CompatChrome(43.0)}}</td>
- <td>{{CompatGeckoDesktop(46)}}</td>
- <td>{{CompatUnknown()}}</td>
- <td>{{CompatUnknown()}}</td>
- <td>{{CompatUnknown()}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>功能</th>
- <th>Android</th>
- <th>Android Webview</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Firefox OS</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- <th>Chrome for Android</th>
- </tr>
- <tr>
- <td>基础支持</td>
- <td>{{CompatNo()}}</td>
- <td>{{CompatChrome(43.0)}}</td>
- <td>{{CompatGeckoMobile(46)}}</td>
- <td>{{CompatUnknown()}}<sup>[1]</sup></td>
- <td>{{CompatUnknown()}}</td>
- <td>{{CompatUnknown()}}</td>
- <td>{{CompatUnknown()}}</td>
- <td>{{CompatChrome(43.0)}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] Firefox OS 现在采用自己的具有特殊工作方式的 Permissions API:参见  <a href="/en-US/docs/Web/API/Permissions_API_(Firefox_OS)">Permissions API (Firefox OS)</a>.</p>
+{{Compat("api.Navigator.permissions")}}
<h2 id="See_also" name="See_also">参见</h2>
diff --git a/files/zh-cn/web/api/navigator/serviceworker/index.html b/files/zh-cn/web/api/navigator/serviceworker/index.html
index 16cf2ac51d..677c3bd066 100644
--- a/files/zh-cn/web/api/navigator/serviceworker/index.html
+++ b/files/zh-cn/web/api/navigator/serviceworker/index.html
@@ -35,59 +35,7 @@ translation_of: Web/API/Navigator/serviceWorker
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome(40.0)}}</td>
- <td>{{ CompatGeckoDesktop("44.0") }}<sup>[1]</sup></td>
- <td>{{CompatNo}}</td>
- <td>24</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Firefox OS</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- <th>Chrome for Android</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{ CompatGeckoMobile("44.0") }}</td>
- <td>{{ CompatVersionUnknown }}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] Service workers (and <a href="/en-US/docs/Web/API/Push_API">Push</a>) have been disabled in the <a href="https://www.mozilla.org/en-US/firefox/organizations/">Firefox 45 Extended Support Release</a> (ESR.)</p>
+{{Compat("api.Navigator.serviceWorker")}}
<h2 id="也可以看看">也可以看看</h2>
diff --git a/files/zh-cn/web/api/navigator/vibrate/index.html b/files/zh-cn/web/api/navigator/vibrate/index.html
index 30dcc9d839..012bfb5438 100644
--- a/files/zh-cn/web/api/navigator/vibrate/index.html
+++ b/files/zh-cn/web/api/navigator/vibrate/index.html
@@ -48,65 +48,7 @@ window.navigator.vibrate([100,30,100,30,100,200,200,30,200,30,200,200,100,30,100
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("11.0")}} {{property_prefix("moz")}}<br>
- {{CompatGeckoDesktop("16.0")}} (no prefix) [1]</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android Webview</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}} {{property_prefix("webkit")}}<br>
- {{CompatVersionUnknown}} (unprefixed) [2][3]</td>
- <td>{{CompatVersionUnknown}} {{property_prefix("webkit")}}<br>
- {{CompatVersionUnknown}} (unprefixed) [2][3]</td>
- <td>{{CompatGeckoMobile("11.0")}} {{property_prefix("moz")}}<br>
- {{CompatGeckoMobile("16.0")}} (no prefix) [1]</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}<sup>[3]</sup></td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] 当震动模式太长或者其中一次震动的时长太长时,截至 Firefox 26,Gecko 将会抛出一个异常,而不是返回 <code>false</code> ({{bug("884935")}})。从 Firefox 32 开始,Gecko 返回 <code>true</code>,但是会将该模式截断 ({{bug(1014581)}})。</p>
-
-<p>[2] 从 Chrome 55 开始,跨域的 iframe 中不支持该 API。</p>
-
-<p>[3] 从 Chrome 60/Opera 47 开始,该方法需要一个用户手势。否则会返回 <code>false</code>。</p>
+{{Compat("api.Navigator.vibrate")}}
<h2 id="更多">更多</h2>