Chrome 的滚动条修改.

该方法针对于win下Chrome任何版本(未测试基于Chrome内核的其余浏览器),Lunix就是目录换了一下css

目录是:**\Google\Chrome\User Data\Profile 2\User StyleSheetsweb

目录可能会变...可是最后确定是StyleSheets.浏览器

文件确定是下面的这个测试

而后看到一个叫Custom的css文件unix

右键编辑it

代码:file

::-webkit-scrollbar-track-piece{webkit

background-color:#fff;scroll

-webkit-border-radius:0;方法

}

::-webkit-scrollbar{

width:12px;        /*这个是滚动条的宽度

height:8px;

}

::-webkit-scrollbar-thumb{

height:50px;

background-color:#990000;  /*这个是滚动个个长方块的颜色

-webkit-border-radius:4px;

outline:2px solid #fff;

outline-offset:-2px;

border: 2px solid #fff;

}

::-webkit-scrollbar-thumb:hover{

height:50px;

background-color:#000000;   /*这个是鼠标悬停在滚动方块上是的颜色  ps其余的本身探究把..西西

-webkit-border-radius:4px;

}

相关文章
相关标签/搜索