除非使用滚动条,否则防止内容用鼠标滚动向下滚动
Prevent the content to scroll down with the mouse scroll unless by using the scroll bar
如何使内容 none 可通过鼠标滚轮滚动,但只能使用滚动条向下滚动。
非常感谢。
您可以使用 jQuery。像这样
$("body").bind("mousewheel", function() {
return false;
});
可以绑定touchstart
事件,但是手机没有滚动条,用户怎么滚动?
$("body").bind("mousewheel, touchstart", function() {
return false;
});
好吧,我找到了这个解决方案
触摸操作:pan-x;
它将允许您单击内容但无法向下滚动
如何使内容 none 可通过鼠标滚轮滚动,但只能使用滚动条向下滚动。
非常感谢。
您可以使用 jQuery。像这样
$("body").bind("mousewheel", function() {
return false;
});
可以绑定touchstart
事件,但是手机没有滚动条,用户怎么滚动?
$("body").bind("mousewheel, touchstart", function() {
return false;
});
好吧,我找到了这个解决方案
触摸操作:pan-x;
它将允许您单击内容但无法向下滚动