Use CSS code to easily Diy your web page scroll bar

Source: Internet
Author: User

When browsing a webpage, we can sometimes see that the color of some webpage scroll bars is not the default color of the system, but the beautiful red or other colors. In fact, this is implemented by adding code between webpage codes, what code is specific?
The code of the webpage scroll bar and its explanation are as follows: (replace uppercase angle brackets with lowercase when copying)

The code is as follows: Copy code
<Style type = "text/css">
<! --
Body {
Scrollbar-face-color: # C0C0C0; (surface)
Scrollbar-highlight-color: # FFFFFF; (Bright Side)
Scrollbar-3dlight-color: # C0C0C0; (3D Bright Side)
Scrollbar-darkshadow-color: #000000; (3D dark edge)
Scrollbar-Shadow-color: #808080; (Shadow)
Scrollbar-arrow-color: #000000; (arrow)
Scrollbar-track-color: # E0E0E0; (scroll area)

-->
</Style>

The above code, from below the Body, all the code after # is color code, the color code is hexadecimal. The text in the brackets is a comment on the code on the left. Do not enter the text when adding the webpage code. In this way, you can DIY your own web page scroll bar.

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.