Home > Web Front-end > HTML Tutorial > Summary of HTML page scroll bar related settings

Summary of HTML page scroll bar related settings

巴扎黑
Release: 2017-06-04 10:58:28
Original
3497 people have browsed it

Scroll bars are often seen on web pages, such as input boxes, so how to set good-looking scroll bars according to your own preferences. Today I will summarize the method of setting scroll bars:

Setting scroll bars Style:

1.Illustration of the steps for setting the scroll bar style in css

The browser's default scroll bar looks too silly, so you have to do it yourself. I remember that IE browser has several styles for setting scroll bars, but they are relatively useless. They can only set colors and the like, and webkit does not support them. I accidentally saw that the scroll bar of NetEase mailbox looks very good. At first, I thought it was simulated with p. But when I saw it, it was exactly what I wanted. It was set up by using CSS and it was a webkit browser.

Summary of HTML page scroll bar related settings

2.Set the scroll bar style in html

Set the scroll bar color:

1.Solution to the inability to set the scroll bar color under IE6

Solution to the inability to set the scroll bar color under IE6

Generally, the following CSS code is used when setting the scroll bar style:

body
{
    scrollbar-face-color:#f6f6f6;
    scrollbar-highlight-color:#fff;
    scrollbar-shadow-color:#eeeeee;
    scrollbar-3dlight-color:#eeeeee;
    scrollbar-arrow-color:#000;
    scrollbar-track-color:#fff;
    scrollbar-darkshadow-color:#fff;
}
Copy after login

Relevant Q&A recommendations:

1. Setting scroll bars with multiple divs nested in a div has no effect

2. How to set the top and bottom margins of the scroll bar

3.How to set the color of the scroll bar, cross-browser

The above is the detailed content of Summary of HTML page scroll bar related settings. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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