![]() |
1
geelaw 25 天前 ![]() 自定义 CSS 里设置
button.scroll-top { display: none !important; } 即可,另外这个按钮的实现挺古早的,jQuery 的 animate 滚动并不好看(缓动函数不好),推荐的做法是朴素的 window.scroll(0, 0); 并且在 html, body 上设置 html, body { scroll-behavior: smooth; } @media (preferes-reduced-motion: reduce) { html, body { scroll-behavior: auto; } } 来让浏览器决定如何滚动。 |
![]() |
3
leadfast 15 天前
自定义 CSS 设置开启有啥条件么,为什么我设置的不生效呢,这个按钮位置是越来越碍眼了
|