0

我正在使用这个插件: http ://www.smoothdivscroll.com/

当页面以 chrome 加载时,我遇到了自动滚动工作的问题。它会在 Firefox、IE 和 Safari 中自动滚动,但我无法让它在加载 Google Chrome 时滚动。任何建议将不胜感激!

这是我正在构建的页面的链接: http ://www.gerardtonti.com/ArtExpo/index.html

谢谢!

格里

4

1 回答 1

0

我对 Chrome 也有同样的问题,我唯一发现的是 Chrome 对使用 autoScrollingStep=1 选项一次滚动 1 个像素并不感到兴奋。

因此,我增加了像素步长,并减慢了间隔。问题是它现在在 Chrome 中并不完全“平滑”。

        $(document).ready(function () {
        // Initialization
        $("div#makeMeScrollable").smoothDivScroll({
            autoScrollingMode: "onStart",
            autoScrollingDirection: "endlessLoopRight",
            autoScrollingStep: 3,   // anything less than 3 in Chrome doesn't work
            autoScrollingInterval:20 // default is 10ms, increase so it looks like you want. 

        });
    });

也许 tkhan 会带来更好的信息。

于 2013-05-26T18:55:08.057 回答