codecamp

window属性:onwheel

onwheel属性

该onwheel属性返回当前元素上的onwheel事件处理程序代码。

onwheel属性语法

element.onwheel = function() { .. }

规范

规范状态注释
HTML Living Standard
在该规范中定义'onwheel'。
Living Standard
 

浏览器兼容性

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

  • 电脑端
特征Chrome
Firefox(Gecko)
IE浏览器Opera
Safari(WebKit)
基本支持支持:61支持支持支持:48支持
  • 移动端
特征Android WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
基本支持支持:61支持:61支持支持支持支持:48支持

笔记

当用户滚动元素的内容时引发该wheel事件。

window属性:onvrdisplaypresentchange
window属性:opener
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定