首页 > 代码库 > jquery鼠标移入某区域屏蔽鼠标滚轮 滚动滚动条
jquery鼠标移入某区域屏蔽鼠标滚轮 滚动滚动条
<script> var firefox = navigator.userAgent.indexOf(‘Firefox‘) != -1; function MouseWheel(e) { ///对img按下鼠标滚路,阻止视窗滚动 e = e || window.event; if (e.stopPropagation) e.stopPropagation(); else e.cancelBubble = true; if (e.preventDefault) e.preventDefault(); else e.returnValue = http://www.mamicode.com/false;"height:100px"></div><img src="http://avatar.profile.csdn.net/C/5/A/1_px372265205.jpg" id="img" style="width:200px"/><div style="height:1000px"></div>
帖子地址:http://bbs.csdn.net/topics/390516035
jquery鼠标移入某区域屏蔽鼠标滚轮 滚动滚动条
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。