我使用的自定义滚动在Chrome中正常工作...但它不适用于Firefox或IE9。如何在Firefox和IE中获取自定义滚动条?
这是CSS:
::-webkit-scrollbar {
width: 7px;
height: 1px;
}
::-webkit-scrollbar-thumb
{
height: 1em;
background: #ccc -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(240, 240, 240)), to(rgb(250, 250, 250)));
-webkit-border-radius: 5px;
}
::-webkit-scrollbar-button:end:increment {
background:url(../images/down.png) center no-repeat;
}
::-webkit-scrollbar-button:start:decrement
{
background:url(../images/up.png) center no-repeat;
}
@pacofvf:这正是他的要求。 – SLaks 2012-02-17 17:31:23
@SLaks如果你是对的,你应该编辑问题来提问。我不认为OP知道这一点。我只是想把他指向正确的方向。 – 2012-02-17 17:38:15
你可以发布你想要滚动条的样子吗?我看不到上面代码中列出的图像。 – 2012-02-25 00:23:51