Tips for creating web pages: using CSS to define the color of a scroll bar

Source: Internet
Author: User

See the following cases. This set of code may not be entertaining, but it changes the style of the traditional scroll bar. You can change the code to create the scroll bar style you like. In fact, these codes are highly self-descriptive. In any case, let's take a good look!

The code is as follows: Copy code
<Style type = "text/css">
BODY
{
Scrollbar-face-color: green;
Scrollbar-shadow-color: blue;
Scrollbar-highlight-color: black;
Scrollbar-3dlight-color: red;
Scrollbar-darkshadow-color: brown;
Scrollbar-track-color: yellow;
Scrollbar-arrow-color: white;
}
</STYLE>

You must insert the preceding code into the The following figure shows the style code used to define the scroll bar. I don't want to explain it more, because the explanation of each statement is clear. So try them to make your page look more beautiful!
The following code is used on my own page. If you like it, you can use it freely.

The code is as follows: Copy code
<Style type = "text/css">
BODY
{
Scrollbar-face-color: # EAEAEA;
Scrollbar-shadow-color: # EAEAEA;
Scrollbar-highlight-color: # EAEAEA;
Scrollbar-3dlight-color: # EAEAEA;
Scrollbar-darkshadow-color: #697074;
Scrollbar-track-color: # F7F7F7;
Scrollbar-arrow-color: #666666;
}
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.