Home > Web Front-end > CSS Tutorial > Detailed explanation of using CSS to adjust the color of scrollbar (scroll bar)

Detailed explanation of using CSS to adjust the color of scrollbar (scroll bar)

黄舟
Release: 2017-07-03 11:12:26
Original
1867 people have browsed it

PSD to HTML,
There is an embedded introductory information on the design draft. When the text is too long, it is required to use a processed scroll bar to display it.

If you require compatibility with firefox, you can use JQ to make it.

If you only require IE browser, you can change the color of the scroll bar by adjusting CSS.

The code is as follows:

.uicss-cn
{
height:580px;overflow-y: scroll;
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;
}
Copy after login

The scrollbar area corresponding to the specific style is as shown:

Detailed explanation of using CSS to adjust the color of scrollbar (scroll bar)

The above is the detailed content of Detailed explanation of using CSS to adjust the color of scrollbar (scroll bar). For more information, please follow other related articles on the PHP Chinese website!

Related labels:
css
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template