前言
去掉页面上的滚动条,但是依然可以滚动
代码
/* 去掉页面滚动条 */
::-webkit-scrollbar
{
width: 0px!important;
height: 0px!important;
background-color: rgba(171, 171, 171, 0)!important;
background-color: rgba(171, 171, 171, 0)!important;
}
::-webkit-scrollbar-track
{
box-shadow: inset 0 0 6px rgba(171, 171, 171, 0)!important;
background-color: rgba(171, 171, 171, 0)!important;
}
::-webkit-scrollbar-thumb
{
box-shadow: inset 0 0 6px rgba(171, 171, 171, 0)!important;
background-color: rgba(171, 171, 171, 0)!important;
}
*{
scrollbar-color: rgba(171, 171, 171, 0)!important;
scrollbar-track-color: rgba(171, 171, 171, 0)!important;
}
#pageContent {
scrollbar-width: none;
}