Removal and landscaping scroll bar overflow generated due?

 Remove the scroll bar overflow generated?

.discrible {
    overflow: scroll; 
    -ms-overflow-style: none;   //IE 10+
    overflow: -moz-scrollbars-none;    //Firefox
}
/*整个滚动条样式 当width:0;或display:none;时,滚动条不显示*/
.discrible::-webkit-scrollbar {  
   display:none;
}

Remove the default scroll bar style and landscaping?

.discrible {
    overflow: scroll; 
}
/*整个滚动条样式*/
.discrible::-webkit-scrollbar {  
    width: 6px; 
    height: 0px;
}
/*设置滚动条上的滚动滑块样式*/
.discrible::-webkit-scrollbar-thumb {
    background: transparent;
}
/*鼠标位于内容上时,滚动条样式*/
.discrible:hover::-webkit-scrollbar {
    width: 6px;
    height: 0px;
    background: rgba(238, 238, 238, 1);
    border-radius: 6px;
}
/*鼠标位于内容上时,滚动滑块样式*/
.discrible:hover::-webkit-scrollbar-thumb {
    background: #9bcaff;
    border-radius: 10px;
}

 

 

 

Published 24 original articles · won praise 3 · views 20000 +

Guess you like

Origin blog.csdn.net/sunny123x/article/details/84800888