Summary of CSS scroll bar style settings

Source: Internet
Author: User
In our previous article we have introduced about the div scrollbar color settings, we all know that the scrollbar style we can control through the CSS, then we will give you today on the CSS scroll bar style settings Summary ~

CSS scroll bar style:

1.CSS scroll Bar-blue ideal for small matches

Scroll bars are often seen in Web pages, but are not given enough attention. The debug operation occurs only if the issue of the scrollbar requires processing compatibility. This article will comb the common content of the scroll bar.

2.CSS setting scroll bar style step plot

Browser default scroll bar look too much dick, you have to do the whole. I remember the IE browser has a few settings scroll bar style, but relatively chicken, can only set color and so on, and WebKit below is not supported. Inadvertently see NetEase mailbox scroll bar looks very nice, at first thought is using p simulation, the results of a look, roar, just as I mean, using the CSS to set, and is WebKit browser.

3. Ask a simple CSS scrollbar width compatible with IE7 and IE6 issues

At this time when in Firefox, Google, IE8 above, when the table content height is greater than 440px, there will be scroll bar, the width of table will automatically become 420px, that is width-browser.scroll.width (sense, playing Chinese characters too troublesome). However, the IE7 does not automatically narrow the scroll bar out of the width, but the scroll bar appears below. If the contents of the overflow-x:hidden,table are set, they will be partially covered by scroll.

4.CSS Modify scroll bar default style

This article uses the code case to introduce how to use CSS to modify the default scrollbar style, simple sample code, clear logical thinking, simple code at a glance, understand the future can be extrapolate, very valuable collection!

5.DIV+CSS scroll bar properties and style settings

Visible is saved, there is no scroll bar, depending on the size of the content auto-expanding area, that is, the defined area is invalid.

Scroll always show scroll bars

Hidden no scroll bar, content beyond the area is not visible

Auto determines whether or not to add scroll bars based on content

CSS scroll bar related questions and answers:

1.JAVASCRIPT-HTML+CSS scroll bar shadowing problem

2.css-Multiple div display horizontal scroll bar

3.CSS-How do I make table horizontal scroll bars appear?

"Related articles recommended":

1.DIV scroll bar color settings and a summary of some issues

Summary of methods for implementing mouse styles in 2.html and CSS

Summary of methods for introducing CSS styles in 3.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.