给网站加上了自定义滚动条。

代码如下:

::-webkit-scrollbar-thumb {
 min-height:50px;
 border-radius:3px;
 background-color:#aaa
}
::-webkit-scrollbar-track {
 background:#fff
}
::-webkit-scrollbar-corner {
 background:transparent
}
::-webkit-scrollbar {
 width:7px;height:7px
}

仅支持webkit内核浏览器(废话),参(b)考(a)了axiu那里的滚动条。

共有 2 条评论

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.