【问题标题】:Site won't scroll down in chrome网站不会在 chrome 中向下滚动
【发布时间】:2018-08-26 22:57:57
【问题描述】:

由于某种原因根本没有向下滚动,它在 Internet Explorer 和 Mozila 上运行良好,但在 google chrome 上它根本拒绝向下滚动。请帮我!我不知道该怎么办。

菲利普

【问题讨论】:

    标签: html css


    【解决方案1】:

    只需从 jquery.simplr.smoothscroll.js 文件中删除 return false,它会阻止在 chrome 浏览器中滚动....

    $('body').mousewheel(function(event, delta) {
        wheel = true;
        if (delta < 0) // down
            top = (top+viewport) >= doc.height() ? top : top+=step;
        else // up
            top = top <= 0 ? 0 : top-=step;
    
        body.stop().animate({scrollTop: top}, speed, self.ease, function () {
            wheel = false;
        });
        // return false;   // remove this
    });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-08-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-20
      • 1970-01-01
      • 2018-06-18
      相关资源
      最近更新 更多