滚动条美化-仿macos

使得windows中浏览器的滚动条更加美观

Author
bilibili-laobideng
Daily installs
0
Total installs
6
Ratings
0 0 0
Version
1.0.1
Created
2024-01-26
Updated
2024-01-26
License
AGPL-3.0-or-later
Applies to
All sites

代码来自掘金作者XboxYan, 但部分样式失效, 做了修复

文章地址:https://juejin.cn/post/7132291477404647431

改动: overflow: overlay; -> scrollbar-gutter: auto;

scrollbar-gutter兼容性:https://caniuse.com/mdn-css_properties_scrollbar-gutter

但是滚动条的淡入淡出动画还是无法做到,看后面能不能加上