本文主要是介绍scroll滚动条美化,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
/自定义滚动条/
.scrollbar {
overflow-y: auto;
}
.scrollbar::-webkit-scrollbar {
width: 6px;
background-color: rgba(217,217,217,0.3);
}
.scrollbar::-webkit-scrollbar-thumb {
background-color: rgba(217,217,217,0.3);
border-radius: 6px;
}
.scrollbar::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(217,217,217,0.3);
background-color: #fff;
}
转载自http://blog.csdn.net/hanshileiai/article/details/40398177
这篇关于scroll滚动条美化的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!