问题:Mac的Chrome浏览器会没有鼠标连接时,会自动在不滚动的时候隐藏滚动条,但是PM需求是需要超出内容就显示滚动条。
解决:直接上代码(颜色自己定义)
@scrollbarwidth: 11px;
::-webkit-scrollbar-thumb {
border-radius: 10px;
transition: all 1s;
background-color: @N900-30;
border: 2px solid transparent;
background-clip: padding-box;
}
::-webkit-scrollbar {
-webkit-appearance: none;
width: @scrollbarwidth;
height: @scrollbarwidth;
}
::-webkit-scrollbar-thumb:hover {
background-color: @N900-60 !important;
}
::-webkit-scrollbar:hover {
width: @scrollbarwidth;
height: @scrollbarwidth;
}