我们能在火狐浏览器中为滚动条应用边框半径吗?

3

我在Chrome浏览器中有一个滚动条,我想让这个滚动条在Firefox浏览器中也能够使用,但是我找不到设置滚动条圆角的方法。

Chrome滚动条CSS样式:

/* Store selector */

/* width */
.lhh::-webkit-scrollbar {
  width: 6px;
  height: 56px !important;
}

/* Handle */
.lhh::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
}

寻找一种解决方案,如何在Mozilla Firefox中为滚动条设置边框半径。 一些链接:firefox css
2个回答

0
在Firefox浏览器中是不可能的,你唯一的选择是颜色和宽度,你可以通过设置以下规则来实现:
scrollbar-color: red; /* your colors here */
scrollbar-width: thin;

-1

只需使用 -moz 而不是 -webkit


不能工作 - undefined

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接