Transparent scrollbar with css

后端 未结 8 1658
面向向阳花
面向向阳花 2020-12-05 04:15

Now use this code (and many variations of this), but scroll track get dark-grey color, something like #222222 or near this. Find many examples, but all of them give same res

8条回答
  •  星月不相逢
    2020-12-05 04:56

    Try this one, it works fine for me.

    In CSS:

    ::-webkit-scrollbar
    {
        width: 0px;
    }
    ::-webkit-scrollbar-track-piece
    {
        background-color: transparent;
        -webkit-border-radius: 6px;
    }
    

    and here is the working demo: https://jsfiddle.net/qpvnecz5/

提交回复
热议问题