zepto - scrollLeft

<div style="border:1px solid black;width:100px;height:130px;overflow:auto">
    The longest word in the english dictionary is: pneumonoultramicroscopicsilicovolcanoconiosis.
</div>
<button class="btn1">把滚动条的水平位置设置为 100px</button>
$("button").click(function(){
        $("div").scrollLeft(100);
    });

 

posted @ 2014-12-16 17:46  小猩猩君  阅读(713)  评论(0编辑  收藏  举报