Sample Code for configuring the H5 scroll bar style and h5 scroll bar style
This article describes the sample code for configuring the h5:
/* Slide rail background color */:-webkit-scrollbar-track {background-color: # b46868;}/* slider color */:: -webkit-scrollbar-thumb {background-color: rgba (0, 0, 0, 0.2);}/* the color of the listening button at both ends of the slide */:: -webkit-scrollbar-button {background-color: #7c2929;}/* the color of the tip at the intersection of the horizontal and vertical scroll bars */:: -webkit-scrollbar-corner {background-color: black;} // you can set the bar in IE and use the browser that can customize the scroll bar, compatibility with body {scrollbar-face-color: # b46868;} from IE5.5: Example/* Document scrol Lbar */:-webkit-scrollbar {width: 8px; }::-webkit-scrollbar-track {box-shadow: inset 0 0 6px rgba (0, 0, 0, 0, 0.3); border-radius: 10px; }::-webkit-scrollbar-thumb {border-radius: 10px; box-shadow: inset 0 0 6px rgba (0, 0, 0, 0.5);}/* Scrollable element */. some-element: webkit-scrollbar {}< div class = "custom-scrollbar"> <p> Lorem ipsum dolor sit amet consectetur adipisicing elit. iure id exercitatio Nem nulla qui repellat laborum vitae, molestias tempora velit natus. Quas, assumenda nisi. Quisquam enim qui iure, consequatur velit sit? </P> </div>
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.