When browsing a webpage, we can sometimes see that the color of some webpage scroll bars is not the default color of the system, but the beautiful red or other colors. In fact, this is implemented by adding code between webpage codes, 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 code is as follows: |
Copy code |
<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.