<分区>
标签 css
<分区>
我使用 ::-webkit-scrollbar
通过以下 CSS 在 Safari/Chrome 中隐藏元素上的滚动条:
#element::-webkit-scrollbar { width:0 !important; height:0 !important }
有什么方法可以在 Firefox 中完成同样的事情吗?
最佳答案
如果你只是想隐藏滚动条,最好使用
overflow: hidden
关于css - 是否有 -moz 等同于::-webkit-scrollbar?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22238754/