window属性:onwheel

2018-06-20 11:07 更新

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事件。

以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号