scrollIntoView()实现滚动到某元素document.getElementById("ID").scrollIntoView(); 具体写法 注意ByClassName 这个方法 会返回数组, 需要确定自己要去的具体元素位值