求一段代码!当我最小化浏览器会出现上下滚动条 和左右滚动条 现在有一个功能:点击某个标签触发js 下面的左右滚动条自动往右达到最右顶!谢谢了![解决办法]
<div style="width:2000px;height:100px;border: 1px solid red;"> <button type="button" onclick="document.documentElement.scrollLeft=2000">滚动到右边</button></div>