如何防止鼠标滚轮滚动整个 html 页面,该页面位于可以使用鼠标滚轮的 div 上?
最佳答案
使用jquery mousewheel extension :
$('#my_div').mousewheel(function(event, delta) {
return false;
});
关于javascript - 即当鼠标在 div 上时防止鼠标滚轮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6017404/