滚动到指定位置scrollIntoView()

https://blog.csdn.net/learn8more/article/details/108047794

 

 

dom.scrollIntoView(

      {behavior: 'smooth'}
  );
posted @ 2021-10-29 10:30  未几  阅读(265)  评论(0编辑  收藏  举报