Chrome scroll bar

Source: Internet
Author: User

Sometimes, the page is beautiful, but the default scroll bar is too ugly. You need to modify it.
This should be the case in chrome. you can add some code in styleand modify the chromecustom.css file so that the scroll bars of all pages can be modified.
Html code
<Html>
<Head>
<Meta http-equiv = "content-type" content = "text/html; charset = UTF-8">
<Title> Chrome scroll </title>
<Style type = "text/css" media = "screen">
:-Webkit-scrollbar-track-piece {
Background-color: # fff;
-Webkit-border-radius: 3;
}
:-Webkit-scrollbar {
Width: 15px;
Height: 8px;
}
:-Webkit-scrollbar-thumb {
Height: 30px;
Background-color: #999;
-Webkit-border-radius: 7px;
Outline: 2px solid # fff;
Outline-offset:-2px;
Border: 2px solid # fff;
}
:-Webkit-scrollbar-thumb: hover {
Height: 30px;
Background-color: # 9f9f9f;
-Webkit-border-radius: 8px;
}
Ul {margin: 0px; padding: 0px; width: 100px; height: 200px; overflow-x: hidden; overflow-y: auto ;}
</Style>
</Head>
<Body>
<Ul>
<Li> aaaaaaaaaaaa </li>
<Li> bbbbbbbbbbbbbbbb </li>
<Li> cccccccccccc </li>
<Li> dddddddddddddd </li>
<Li> eeeeeeeeeeeeeeee </li>
<Li> ffffffffffff </li>
<Li> aaaaaaaaaaaa </li>
<Li> aaaaaaaaaaaa </li>
<Li> bbbbbbbbbbbbbbbb </li>
<Li> cccccccccccc </li>
<Li> dddddddddddddd </li>
<Li> eeeeeeeeeeeeeeee </li>
<Li> bbbbbbbbbbbbbbbb </li>
<Li> cccccccccccc </li>
<Li> dddddddddddddd </li>
<Li> eeeeeeeeeeeeeeee </li>
</Body>
</Html>

Author: "python"

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.