Customize scrollbars using CSS [duplicate]

2019-08-30 06:09发布

This question already has an answer here:

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条回答
该账号已被封号
2楼-- · 2019-08-30 06:45

You could use background-images positioned appropriately.

See this PREVIOUS QUESTION

Also CSS-Trick article

查看更多
登录 后发表回答