css - "Scrollbar not showing in ' 火狐浏览器 ' css problem"

标签 css scroll scrollbar

滚动条在 firefox 浏览器中不显示,但在 chrome 中它工作正常下面是 css 代码

::ng-deep .adf-search-fitler {
  overflow-y: auto;
  height: -webkit-fill-available;
  width: 300px;
  max-width: none;
  min-width: 300px;
}

scrollbar missing image inspect firefoxbrowser

这个 -webkit-fill-available 将在 chrome 浏览器上工作,但“如何实现滚动条‘firefox 浏览器’”

最佳答案

您可以添加多个高度属性:

::ng-deep .adf-search-fitler {
  overflow-y: auto;
  height: -webkit-fill-available;
  height: -moz-available;
  height: fill-available;
  width: 300px;
  max-width: none;
  min-width: 300px;
}

解释一下 -moz 会被 chrome 忽略,反之亦然。

关于css - "Scrollbar not showing in ' 火狐浏览器 ' css problem",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56407065/

相关文章:

html - 打印时在分页处剪切文本

android - RecyclerView 拖放 - 使用 ItemTouchHelper - 如何在拖动时更快地设置滚动速度?

css - html - 如何制作宽度为自动的滚动条?

javascript - 如何强制(默认)滚动条随着缓动而移动(特别是在 chrome 中)

image - 变换:缩放与传统调整大小

c# - itextsharp - CSS 未应用 - C# .NET

winapi - GDI快速滚动

java - Android WebView滚动到底部

javascript - 我可以强制滚动条位置吗?

mfc - 如何获得 GDI HFONT 的行高?