Use CSS code to easily DIY your web page scroll bar

Source: Internet
Author: User

When browsing the Web page, we can sometimes see that the color of some web page scroll bars is not the default color of the system, but beautiful red or other colors. In fact, this is in the web pageCodeCode is added between them. 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 following is a reference clip:
<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.

Source: China webmaster Information Network

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.