优化浏览器进度条(兼容性不是很好在谷歌浏览器生效)

*定义滚动条宽高及背景,宽高分别对应横竖滚动条的尺寸*/

::-webkit-scrollbar {
    width: 16px;
    height: 16px;
    background-color: #f5f5f5;
}


/*定义滚动条的轨道,内阴影及圆角*/

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    border-radius: 10px;
    background-color: #f5f5f5;
}


/*定义滑块,内阴影及圆角*/

::-webkit-scrollbar-thumb {
    height: 20px;
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px#ebebeb;
    background-color: #555;
}

::-webkit-scrollbar-corner {
    background-color: transparent;
}

::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

::-webkit-scrollbar-thumb {
    width: 7px;
    background-color: #999999;
    border-radius: 7px;
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    width: 15px;
}

::-webkit-scrollbar:hover {
    background-color: transparent;
}
/*定义滚动条宽高及背景,宽高分别对应横竖滚动条的尺寸 end*/
原文地址:https://www.cnblogs.com/lst619247/p/14291369.html