html – CSS:如何更改webkit中滚动条的右下方的颜色?

题:

如何在webkit(Google-Chrome)中更改滚动条(黑色)的右下角的颜色?

这是我到目前为止

/*
http://www.coffeepowered.net/2011/06/17/sexy-css-scrollbars/

  

  
Custom Scrollbars in WebKit
*/ ::-webkit-scrollbar { width: 13px; height: 13px; } ::-webkit-scrollbar:hover { height: 18px; } ::-webkit-scrollbar-button:start:decrement,::-webkit-scrollbar-button:end:increment { height: 15px; width: 13px; display: block; background: #101211; background-repeat: no-repeat; } ::-webkit-scrollbar-button:horizontal:decrement { background-image: url(./images/horizontal-decrement-arrow.png); background-position: 4px 3px; } ::-webkit-scrollbar-button:horizontal:increment { background-image: url(./images/horizontal-increment-arrow.png); background-position: 3px 3px; } ::-webkit-scrollbar-button:vertical:decrement { background-image: url(./images/vertical-decrement-arrow.png); background-position: 3px 4px; } ::-webkit-scrollbar-button:vertical:increment { background-image: url(./images/vertical-increment-arrow.png); background-position: 3px 4px; } ::-webkit-scrollbar-button:horizontal:decrement:active { background-image: url(./images/horizontal-decrement-arrow-active.png); } ::-webkit-scrollbar-button:horizontal:increment:active { background-image: url(./images/horizontal-increment-arrow-active.png); } ::-webkit-scrollbar-button:vertical:decrement:active { background-image: url(./images/vertical-decrement-arrow-active.png); } ::-webkit-scrollbar-button:vertical:increment:active { background-image: url(./images/vertical-increment-arrow-active.png); } ::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0,0.3); border-radius: 10px; } ::-webkit-scrollbar-track-piece { background-color: #151716; } ::-webkit-scrollbar-thumb:vertical { height: 50px; background: -webkit-gradient(linear,left top,right top,color-stop(0%,#4d4d4d),color-stop(100%,#333333)); border: 1px solid #0d0d0d; border-top: 1px solid #666666; border-left: 1px solid #666666; border-radius: 10px; -webkit-box-shadow: inset 0 0 6px rgba(0,0.5); } ::-webkit-scrollbar-thumb:horizontal { width: 50px; background: -webkit-gradient(linear,left bottom,#333333)); border: 1px solid #1f1f1f; border-top: 1px solid #666666; border-left: 1px solid #666666; border-radius: 10px; -webkit-box-shadow: inset 0 0 6px rgba(0,0.5); }

解决方法

啊没关系:

答案发现here

::-webkit-scrollbar-corner {
/*
background-image: url(resources/corner.png);
background-repeat: no-repeat;
*/
background-color: #3D3D3D;
}

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


html5中section的用法
span标签和p标签的区别
jsp文件和html文件的区别是什么
span标签和div的区别
html颜色代码表大全
span标签的作用是什么
dhtml的主要组成部分包括什么
html编辑器哪个软件好用
span标签属于什么样式标签
html文件乱码怎么办
html怎么读取json文件
html文件打开乱码怎么恢复原状
html怎么链接外部css
html文件怎么保存到本地
html怎么链接css文件
html和css怎么连接
html和css怎么关联
html文件怎么保存到一个站点
html文件怎么写
html出现乱码怎么解决