Changing the scrollbars' style

后端 未结 4 1547
梦谈多话
梦谈多话 2020-12-15 12:00

Is possible to change scrollbars\' style for all browsers? If it is, how?

4条回答
  •  春和景丽
    2020-12-15 12:23

    Nope. IE allows you to set colours for some constituent parts of the scrollbar. Opera allows a few but not all of those styles.

    Scrollbar colour styling is of increasing irrelevance as UIs move towards complex image-based scrollbar theming. In IE, setting any of the colours reverts the rendering back to a Windows 2000-style simple-3D scrollbar instead of any swishy user theme. Windows Vista/7 (Aero) users probably won't thank you for that.

    You can of course make your own ersatz-scrollbars out of

    s and style them how you like. But the result almost always behaves worse than real scrollbars, since you're trying to replicate a complex UI element whose expected behaviour is different for each OS. You can spend a lot of time reproducing paging behaviour, keyboard up/down and the mouse wheel, but it'll never quite feel as smooth a real OS scrollbar.

提交回复
热议问题