我正在使用本教程(mousewheel插件和脚本)执行水平滚动页面:
http://css-tricks.com/snippets/jquery/horz-scroll-with-mouse-wheel/
滚动适用于chrome但不适用于firefox,它也不适用于教程中的firefox,任何想法如何修复它?
$(function() {
$("body").mousewheel(function(event, delta) {
this.scrollLeft -= (delta * 30);
event.preventDefault();
});
});
答案 0 :(得分:2)
http://cobbweb.me/blog/2012/03/30/jquery-mousewheel-plugin-version-2/
此插件可能会帮助您在Firefox中使用鼠标滚轮。
答案 1 :(得分:0)
有一些滚动插件可以帮到你。 https://github.com/lvming6816077/H5FullscreenPage