jquery.nicescroll.js 结合 bootstrap 5使用时 滚动严重延时的解决...
jquery.nicescroll.js 结合 bootstrap 5使用时 滚动严重延时的解决办法。
jquery.nicescroll.js 结合 bootstrap 5使用时 会发生 滚动不了,或者滚动有延时。问题出在,bootstrap 5新增了平滑滚动的css功能。
需要移除
:root {}下的
scroll-behavior: smooth;如果你使用的是编译模式,则需要关闭:
$enable-smooth-scroll: false !default;具体位置,自行搜索代码。
页:
[1]