aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/screen/lockorientation/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/screen/lockorientation/index.html')
-rw-r--r--files/zh-cn/web/api/screen/lockorientation/index.html90
1 files changed, 1 insertions, 89 deletions
diff --git a/files/zh-cn/web/api/screen/lockorientation/index.html b/files/zh-cn/web/api/screen/lockorientation/index.html
index f9169a396b..9cde0abcf9 100644
--- a/files/zh-cn/web/api/screen/lockorientation/index.html
+++ b/files/zh-cn/web/api/screen/lockorientation/index.html
@@ -98,95 +98,7 @@ if (screen.lockOrientationUniversal(["landscape-primary", "landscape-secondary"]
<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(38)}}<sup>[1]</sup></td>
- <td>{{CompatVersionUnknown}} {{property_prefix("moz")}}<sup>[2]</sup></td>
- <td>11 {{property_prefix("ms")}}<sup>[3]</sup></td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>Array</code> 参数</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("18.0")}}</td>
- <td>11 {{property_prefix("ms")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>default</code></td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</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</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>基础支持</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatChrome(38)}}<sup>[1]</sup></td>
- <td>{{CompatVersionUnknown}} {{property_prefix("moz")}}<sup>[2]</sup></td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>Array</code> 参数</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("18.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>default</code></td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("26.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] 使用更新的标准语法(<code>screen.orientation.lock</code>)实现类似的方法并返回一个 <code>Promise</code> 。虽然它存在于桌面上,但总是会失败。</p>
-
-<p>[2] 此API仅作为Firefox OS和Firefox的前缀方法(<code>screen.mozLockOrientation</code>)实现。另外,由于{{Bug(966480)}},它不适用于Android的Firefox。</p>
-
-<p>[3] 此方法在Internet Explorer for Windows 8.1和Windows RT 8.1中使用前缀(<code>screen.msLockOrientation</code>)实现。 它在Windows 7 上不受支持。</p>
+{{Compat("api.Screen.lockOrientation")}}
<h2 id="参见">参见</h2>