【问题标题】:Scroll Page Horizontally With Mouse Wheel使用鼠标滚轮水平滚动页面
【发布时间】:2012-08-29 17:46:41
【问题描述】:

我正在使用本教程(鼠标滚轮插件和脚本)做一个水平滚动页面:

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();
    });
});

【问题讨论】:

标签: javascript jquery firefox scroll


【解决方案1】:

http://cobbweb.me/blog/2012/03/30/jquery-mousewheel-plugin-version-2/

这个插件可以帮助你在 Firefox 中使用鼠标滚轮滚动。

【讨论】:

    【解决方案2】:

    有一些滚动插件可以帮助你。 https://github.com/lvming6816077/H5FullscreenPage

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-07-20
      • 2011-12-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-21
      相关资源
      最近更新 更多