滚动条在 firefox 浏览器中不显示,但在 chrome 中它工作正常下面是 css 代码
::ng-deep .adf-search-fitler {
overflow-y: auto;
height: -webkit-fill-available;
width: 300px;
max-width: none;
min-width: 300px;
}
这个 -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/