[英]How to make a scrollbar with a transparent background
如何隱藏滾動條軌道,讓滾動條拇指具有透明背景?
這是我的 CSS 現在:
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
display: none; /*I get a white background*/
}
::-webkit-scrollbar-thumb {
background-color: blue;
border-radius: 20px;
border: 3px solid orange;
}
提前致謝。
你不能。 只需將整個滾動條或滾動條軌道的背景顏色與可滾動內容的背景匹配即可。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.