Customize scrollbars using CSS [duplicate]

半城伤御伤魂 提交于 2019-12-13 04:44:16

问题


I have done this code below to customize my scrollbars but I need to put the arrows in the buttons, how can I made it?

::-webkit-scrollbar {
    width: 50px;
}

::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
display: block;
height: 50px;
}

::-webkit-scrollbar-button:vertical:decrement,
::-webkit-scrollbar-button:vertical:increment {
background-color: #ccc;
}

回答1:


You could use background-images positioned appropriately.

See this PREVIOUS QUESTION

Also CSS-Trick article



来源:https://stackoverflow.com/questions/19011867/customize-scrollbars-using-css

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!