::-webkit-scrollbar
{
width: 12px;
}
/* 滚动条的轨道 内阴影+圆角*/
::-webkit-scrollbar-track
{
-webkit-box-shadow: inset 0 0 6px #929C9C;
-webkit-border-radius: 5px;
border-radius: 5px;
}
/* 滚动条里面的滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb
{
-webkit-border-radius: 5px;
border-radius: 5px;
background: inset 0 0 6px #00ABA2;
-webkit-box-shadow: inset 0 0 6px #00ABA2;
}
/*当焦点不在当前区域滑块的状态*/
::-webkit-scrollbar-thumb:window-inactive
{
background: rgba(255,0,0,0.4);
}
/*滚动条上半边或左半边
::-webkit-scrollbar-track-piece:start
{
background: rgba(11,10,100,0.4);
}*/
::-webkit-scrollbar-thumb:hover
{
-webkit-border-radius: 6px;
border-radius: 5px;
background: inset 0 0 6px #00ABA2;
-webkit-box-shadow: inset 0 0 8px #00ABA2;
}
查看更多关于css_滚动条样式_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did108484