透明滚动条 [英] Transparent scrollbar
本文介绍了透明滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使滚动条透明? 只有css 。只适用于webkit浏览器。
我在这里代码。
How to make scrollbar transparent? Only css. Only for webkit browsers. My code here.
div{
width:410px;
height:100px;
overflow-y:overlay;
border:1px solid green;
position:relative;
}
::-webkit-scrollbar{
width:20px;
}
::-webkit-scrollbar-thumb{
background-color:rgba(0,0,0,1);
}
推荐答案
div
{
width:410px;
height:100px;
overflow-y:overlay;
border:1px solid green;
position:relative;
}
::-webkit-scrollbar{
width:20px;
}
::-webkit-scrollbar-thumb{
background-color: rgba(255,255,255,1);
}
这篇关于透明滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文