摘要: document.querySelector('#需要定位的ID').scrollIntoView({ behavior: "smooth", // 定义动画过渡效果, "auto"或 "smooth" 之一。默认为 "auto" block: "center", // 定义垂直方向的对齐, "st 阅读全文
posted @ 2022-04-07 17:05 热心市民宗某§ 阅读(37) 评论(0) 推荐(0)