codecamp

window属性:ondeviceorientationabsolute

ondeviceorientationabsolute属性

注意:ondeviceorientationabsolute属性是非标准的。不要在面向Web的生产站点上使用它:它不适用于每个用户。实现之间也可能存在很大的不兼容性,并且行为在未来可能会发生变化。

ondeviceorientationabsolute属性表示deviceorientationabsolute事件的事件处理程序,其中包含有关绝对设备方向更改的信息。

ondeviceorientationabsolute属性语法

window.ondeviceorientationabsolute = functionevent{...};
window.addEventListener('deviceorientationabsolute'functionevent{...});

规范

此事件处理程序目前不是任何规范的一部分。

浏览器兼容性

我们正在将兼容性数据转换为机器可读的JSON格式。 

  • 电脑端
特征Chrome
Firefox(Gecko)Internet Explorer
Opera
Safari(WebKit)
基本支持支持:50.0不支持不支持不支持不支持 
  • 移动端

特征AndroidAndroid WebviewFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari MobileChrome for Android
基本支持不支持支持:50.0不支持不支持不支持不支持不支持支持:50.0
window属性:ondeviceorientation
window属性:ondeviceproximity
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定