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