平滑滚动不允许我向下滚动页面

时间:2015-12-23 15:49:55

标签: javascript jquery html css scroll

我在github插件中添加了平滑滚动效果。

github.com/simov/simplr-smoothscroll

我在呼吁中添加了效果:

<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.0.6/jquery.mousewheel.min.js"></script>
<script src="http://simov.github.io/simplr-smoothscroll/lib/jquery.simplr.smoothscroll.js"></script>

然后我为效果添加了这段代码:

$(function () { $.srSmoothscroll() });

完成此操作后,我的页面不再向下滚动。它只向上滚动。为什么这不正常?

我添加此网站的网站是该网站的页面:

http://realtorcatch.com/test_index

我希望它能在以下后进行建模:

http://www.templatemonster.com/demo/51054.html

在githubs网站上,它说用法是:

$(function () {
 $.srSmoothscroll({
    // defaults
    step: 55,
    speed: 400,
    ease: 'swing',
    target: $('body'),
    container: $(window)
  })
})

但我被告知只需添加我添加的代码即可。这样:

$(function () { $.srSmoothscroll() });

有没有人对为什么不向下滚动有任何想法?

0 个答案:

没有答案
相关问题