aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/batterymanager
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/batterymanager')
-rw-r--r--files/zh-cn/web/api/batterymanager/charging/index.html2
-rw-r--r--files/zh-cn/web/api/batterymanager/index.html58
2 files changed, 3 insertions, 57 deletions
diff --git a/files/zh-cn/web/api/batterymanager/charging/index.html b/files/zh-cn/web/api/batterymanager/charging/index.html
index dd836b7730..3255a84143 100644
--- a/files/zh-cn/web/api/batterymanager/charging/index.html
+++ b/files/zh-cn/web/api/batterymanager/charging/index.html
@@ -51,6 +51,8 @@ translation_of: Web/API/BatteryManager/charging
</tbody>
</table>
+{{Compat("api.BatteryManager.charging")}}
+
<h2 id="Browser_compatibility浏览器兼容性CompatibilityTable">Browser compatibility浏览器兼容性<span style="color: #3b3c40; font-size: 14px; font-weight: normal; line-height: 1.5;">{{CompatibilityTable}}</span></h2>
<div id="compat-desktop">
diff --git a/files/zh-cn/web/api/batterymanager/index.html b/files/zh-cn/web/api/batterymanager/index.html
index 050fc2a432..d527e6073e 100644
--- a/files/zh-cn/web/api/batterymanager/index.html
+++ b/files/zh-cn/web/api/batterymanager/index.html
@@ -62,63 +62,7 @@ translation_of: Web/API/BatteryManager
<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>基本支持</td>
- <td>{{CompatChrome(39.0)}}</td>
- <td>{{CompatGeckoDesktop("10")}} {{property_prefix("moz")}}<br>
- {{CompatGeckoDesktop("16")}}<sup>[1]</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>Feature</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>{{CompatGeckoMobile("10")}} {{property_prefix("moz")}}<br>
- {{CompatGeckoMobile("16")}}<sup>[1]</sup></td>
- <td>{{CompatNo}}</td>
- <td>25<sup>[2]</sup></td>
- <td>{{CompatNo}}</td>
- <td>{{CompatChrome(42.0)}}<sup>[2]</sup></td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] 在Firefox 10.0中默认无效,但可设定preference <code>dom.battery.enabled</code>为<code>true从而使其有效化。</code>自Firefox 11.0起,<code>mozBattery默认有效。</code>Battery API现能被支持与Android,Windows,和安装了UPower的Linux。自Gecko 18.0 {{geckoRelease("18.0")}}也能支持MacOS。Firefox还为被弃用的{{domxref("navigator.battery")}}提供支持。</p>
-
-<p>[2] {{domxref("BatteryManager.chargingTime")}}和{{domxref("BatteryManager.dischargingTime")}}的值总是等于无穷。</p>
+{{Compat("api.BatteryManager")}}
<h2 id="其他">其他</h2>