📜  滚动行为不起作用 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:47.383000             🧑  作者: Mango

代码示例1
/*Here is one solution if scroll-behavior does not work for you (this worked for me)*/

#example {
  -webkit-scroll-behavior: auto !important;
}

/*So just add -webkit- in front of the scroll-behavior!*/