|
楼主 |
发表于 2024-4-10 13:12:42
|
显示全部楼层
本帖最后由 secret 于 2024-4-10 13:14 编辑
Overlay was NOT part of official CSS specification. I was supported only by webkit engine, was later deprecated and eventually REMOVED. Currently overflow: overlay acts as auto so it should NOT be used.
According to Can I Use, current support is only 8%, and will be decreasing.
Now correct answer will be - it is not possible to achieve this effect with pure CSS, because there is no such properties for overflow or webkit-scrollbar.
If someone really needs that - JS must me involved. Of course there are ready to use libraries like Simplebar.
原本一行css就能实现的现在需要库或者插件来解决了
美美推广一波自家扩展商店
不知道百分会考虑继续支持吗 还是实现起来很麻烦呢
|
|