/* 隐藏滚动条 */
::-webkit-scrollbar {
width: 0 !important;
}
/* 滚动条背景颜色 */
::-webkit-scrollbar {
background-color: 0 !important;
}
写在app.vue全局应用
/*滚动条样式设置*/
::-webkit-scrollbar {
width: 5px;
height: 5px;
}
/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track
{
border-radius: 10px;
background-color: rgba(0,0,0,0.1);
}
/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb
{
border-radius: 10px;
box-shadow: inset 0 0 6px rgba(0,0,0,.3);
background-color: rgba(0,0,0,0.1);
}
/* 设置垂直滚动条的宽度和水平滚动条的高度 */
::-webkit-scrollbar{
width: 8px;
height: 8px;
}
/* 设置滚动条的滑轨 */
::-webkit-scrollbar-track {
background-color: #eee;
}
/* 滑块 */
::-webkit-scrollbar-thumb{
background-color: rgba(0, 0, 0, 0.4);
border-radius: 4px;
}