到相对应的元素位置。

setTimeout(function () {
document.getElementById("aa").scrollIntoView({
behavior: "smooth",
block: "start"
})
},500)
posted @ 2021-06-29 15:34  昵称cart  阅读(29)  评论(0编辑  收藏  举报