Styling scroll bars with CSS [duplicate]

2019-05-02 07:12发布

This question already has an answer here:

I tried searching online but I didn't find any good sources on this. Is there a way to style scroll bars with pure CSS so that it is compatible with a maximum number of browsers?

2条回答
Animai°情兽
2楼-- · 2019-05-02 08:10

You can style scrollbars in Internet Explorer and Webkit only.

Note that these are not standard properties.

However, you can achieve this with JavaScript. One project that does this is jScrollPane.

查看更多
我只想做你的唯一
3楼-- · 2019-05-02 08:10

Adding my 2 pence a little late, but if you really want to style them I would suggest trying http://jscrollpane.kelvinluck.com/. It's not a pure CSS solution like you are looking for but is a solution of sorts.

查看更多
登录 后发表回答