1.Element.scrollIntoView()

2.window.scroll(x,element.offsetTop)

posted on 2021-02-24 15:28  蝎子莱莱与车轮滚滚  阅读(29)  评论(0)    收藏  举报