Javascript复习(四)

,鼠标滚轮事件事件名称:onmousewheel兼容性:火狐不支持onmousewheel支持DOMMouseScroll事件该事件触发条件:当鼠标滚轮滚动的时候触发。绑定方式://给document绑定鼠标滚轮事件document.onmousewheel=function(){console.log("滚动滚轮了");}在chrome中滚动:在IE中滚动滚轮:在火狐中滚