zepto - scrollLeft

mac2022-06-30  25

<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); });

 

转载于:https://www.cnblogs.com/qzsonline/p/4167694.html

最新回复(0)