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 Webview | Chrome for Android | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|---|
| 基本支持 | 支持:61 | 支持:61 | 支持 | 支持 | 支持 | 支持:48 | 支持 |
笔记
当用户滚动元素的内容时引发该wheel事件。