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

::-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*/

 

相关文章:

  • 2022-12-23
  • 2022-02-10
  • 2021-10-19
  • 2021-04-24
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
猜你喜欢
  • 2022-12-23
  • 2021-06-07
  • 2021-05-25
  • 2021-12-06
相关资源
相似解决方案