Sample Code for configuring the H5 scroll bar style and h5 scroll bar style

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.