A scroll bar looks like it’s made up of two parts: 1, the part that slides, which we call the slider, and 2, the track of the scroll bar, which is the track of the slider, which is generally darker than the track.

Scrollbar CSS style consists of three main parts:

1, :: -webkit-ScrollBar defines the overall style of the scrollbar;

2, ::-webkit-scrollbar-thumb slider part;

3, ::- Webkit-Scrollbar-thumb track part;

.voyageItem::-webkit-scrollbar {
  	width: 6px;
    height: 6px;
}
.voyageItem::-webkit-scrollbar-thumb {
	background-color: #c2c2c2;
	background-clip: padding-box;
}
Copy the code