css - 在 Firefox 中隐藏滚动条

标签 css firefox scrollbar

是否真的有任何方法可以在 Firefox 中隐藏滚动条,无需设置为绝对值而无需操作填充/边距,也无需创建特定于浏览器的 css 文件,我只想知道是否有像这样的干净解决方案。

    ::-webkit-scrollbar {
         display: none;
    }

不幸的是,这只适用于 webkit 浏览器。

最佳答案

html { overflow: -moz-scrollbars-none; } 

关于css - 在 Firefox 中隐藏滚动条,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51553909/

相关文章:

html - 如何在 Firefox 中禁用 Html 表 native 选择

python - Selenium webdriver 似乎无法与 Firefox 49.0 一起正常工作。我错过了什么吗?

css - Div 上滚动条的 IE10 问题

jquery - 使用滚动条插件与具有 100% 高度的 DIV

css - 对我的 CSS 布局感到困惑

html - 如何垂直对齐带有两个按钮的图标?

css - 使用 css 隐藏文本 : text-indent

CSS 网格 : how to make grid cell a hyperlink target?

c++ - JavaScript 无法访问 XPCOM 对象方法

html - 滚动条不工作时隐藏