Css sets the scrollbar style of the page scroll bar

Source: Internet
Author: User

Place the code as shown in the following figure.

 

The css code is as follows:

The code is as follows: Copy code

<Style type = "text/css">
Body, html {
Scrollbar-face-color: #353535;
Scrollbar-shadow-color: #565656;
Scrollbar-highlight-color: #565656;
Scrollbar-3dlight-color: # 7F7F7F;
Scrollbar-darkshadow-color: #565656;
Scrollbar-track-color: #565656;
Scrollbar-arrow-color: # DADADA;
}
</Style>

Since the definition in xhtml has no effect on the body, you can define both the body and the html tag for the sake of universality.

The following table lists the corresponding legends of these types:

Now let's preview your html page to see if the color of the scroll bar has changed to the color you set.

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.