::-webkit-scrollbar {
visibility: visible !important;
width: 8px;
}
::-webkit-scrollbar-track-piece
{
-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.3);
border-radius:10px;
background-color:#ffffff2b;
}
::-webkit-scrollbar-thumb
{
border-radius:5px;
-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.44, rgb(122,153,217)), color-stop(0.72, rgb(73,125,189)), color-stop(0.86, rgb(28,58,148)));
}
#roam-main-wrap .main-unit::-webkit-scrollbar {
display: block !important;
}
修改了一下h大的css
效果如下
参考资料:
https://www.xuanfengge.com/demo/201311/scroll/css3-scroll.html