.container {
background-color: #9498b3;
width: 300px;
height: 100px;
overflow-y: scroll;
border-radius: 10px;
}
.container::-webkit-scrollbar-track {
border-radius: 10px;
background-color: red;
}
.container::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: green;
}
.container::-webkit-scrollbar {
width: 10px;
<html>
<body>
<div class="container">
some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here some text is here
</div>
</body>
</html>
Попробуйте, но обратите внимание, что пользовательские полосы прокрутки не поддерживаются в Firefox или IE / Edge.
#TableDiv::-webkit-scrollbar {
width: 20px;
}
#TableDiv::-webkit-scrollbar-track {
border-radius: 10px;
}
#TableDiv::-webkit-scrollbar-thumb {
border-radius: 10px;
}