使用:scrollLeft属性 此处html部分省略,直接展示实现的方法 // div可以换成你想要移动的div document.getElementById('div').scrollLeft = 200;.