0

找个简单的滚动条吧,没什么特别的。我的代码:

<script type="text/javascript">
    // Initialize the plugin with no custom options
    $(document).ready(function () {
        // None of the options are set
        $("div#makeMeScrollable").smoothDivScroll({
            mousewheelScrolling: false,
            hotSpotScrolling: false,
            autoScrollingMode: "onstart"
        });
    });
</script>

当您将鼠标悬停在 div 的右边缘时,滚动停止。发生在 Chrome 和 IE 中,否则似乎工作正常???

4

1 回答 1

0

将代码更改为:

<script type="text/javascript">
    // Initialize the plugin with no custom options
    $(document).ready(function () {
        // None of the options are set
        $("div#makeMeScrollable").smoothDivScroll({
            autoScrollDirection: "endlessloopright",
            autoScrollingMode: "always"
        });
    });
</script>

希望这能像你预期的那样工作!

于 2012-05-10T13:20:26.000 回答