📜  javascript 滚动到顶部平滑 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:28.153000             🧑  作者: Mango

代码示例2
html {
  scroll-behavior: smooth;
}

/* No support in IE, or Safari
You can use this JS polyfill for those */
http://iamdustan.com/smoothscroll/