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"