jquery禁止鼠标滚动的方法:1、打开相应的代码文件;2、通过“$(document).bind('mousewheel', function(event, delta) {return false;});”禁用鼠标滚轮事件即可。

本文操作环境:windows7系统、jquery3.2.1版、DELL G3电脑
jquery 怎么禁止鼠标滚动?
jQuery禁用、开启鼠标滚轮事件
1.禁用鼠标滚轮事件
jquery垂直时间轴鼠标滚动时间轴滚动代码,一般用在注册上面,例如注册需要几个步骤,或者其他的一些网站,快递公司手机端也会用到,例如商品到哪里了,都会有时间和快递在什么地方了!
$(document).bind('mousewheel', function(event, delta) {return false;});2、开启鼠标滚轮事件,直接解绑事件就可以
$(document).unbind('mousewheel');推荐学习:《jquery视频教程》









