aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/deviceorientationevent/alpha
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/deviceorientationevent/alpha
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/api/deviceorientationevent/alpha')
-rw-r--r--files/zh-cn/web/api/deviceorientationevent/alpha/index.html53
1 files changed, 53 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/deviceorientationevent/alpha/index.html b/files/zh-cn/web/api/deviceorientationevent/alpha/index.html
new file mode 100644
index 0000000000..e4a6a0a4d4
--- /dev/null
+++ b/files/zh-cn/web/api/deviceorientationevent/alpha/index.html
@@ -0,0 +1,53 @@
+---
+title: DeviceOrientationEvent.alpha
+slug: Web/API/DeviceOrientationEvent/alpha
+tags:
+ - API
+ - 陀螺仪
+translation_of: Web/API/DeviceOrientationEvent/alpha
+---
+<p>{{ ApiRef("Device Orientation Events") }}</p>
+
+<p>返回设备旋转时Z轴的值;即:设备围绕屏幕中心扭转的角度。  详细信息请查看<a href="/en/DOM/Orientation_and_motion_data_explained" title="Orientation and motion data explained">方向和运动数据</a>。</p>
+
+<h2 id="Syntax">Syntax</h2>
+
+<pre class="syntaxbox">var alpha = <em>instanceOfDeviceOrientationEvent</em>.alpha;
+</pre>
+
+<h2 id="Specifications">Specifications</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('Device Orientation')}}</td>
+ <td>{{Spec2('Device Orientation')}}</td>
+ <td>Initial specification.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility">Browser compatibility</h2>
+
+<p> </p>
+
+<p>{{Compat("api.DeviceOrientationEvent.alpha")}}</p>
+
+<p> </p>
+
+<h2 id="See_also">See also</h2>
+
+<ul>
+ <li>{{ domxref("DeviceOrientationEvent") }}</li>
+ <li><a href="/en/Detecting_device_orientation" title="Detecting device orientation">Detecting device orientation</a></li>
+ <li><a href="/en/DOM/Orientation_and_motion_data_explained" title="Orientation and motion data explained">Orientation and motion data explained</a></li>
+ <li>{{ domxref("window.ondeviceorientation") }}</li>
+ <li>{{ event("deviceorientation") }}</li>
+</ul>