Use a style sheet to control the scroll bar in IE5.5 browser

Source: Internet
Author: User

Since the appearance of dhtml, Microsoft has never stopped strengthening dhtml functions. It has added a lot of new style table content in ie5.5 of internet explorer 5.5, the latest Microsoft browser, modifying the style of a scroll bar is also one of them. Next we will briefly introduce the style table content that involves the browser scroll bar:
1. Settings for overflow content overflow
Settings for overflow-x horizontal content overflow
Settings for overflow-y vertical content overflow
The values of the preceding three attributes are visible (default), scroll, hidden, and auto.
2. Scrollbar-3d-light-color three-dimensional scroll bar bright side color
Scrollbar-arrow-color the color of the upper and lower arrow of the buttons
Scrollbar-base-color BASIC color of the scroll bar
Scrollbar-dark-shadow-color the color of the strong shadow of the three-dimensional scroll bar
Scrollbar-face-color of the protruding part of the stereo scroll bar
Scrollbar-highlight-color the color of the blank area of the scroll bar
Scrollbar-shadow-color specifies the color of the shadow of a three-dimensional scroll bar.
The values set in the preceding seven attributes are color values. You can use the expressions defined in the style sheet.
Using the above style definition content, we can specify whether or not the browser window and multi-line text box scroll bar display and color style, the first set of style attributes are used to set whether the set object shows the scroll bar, the second set of style attributes is used to set the color of the scroll bar. Note that all style attributes involved in this article are supported by ie. The second set of style attributes can only be supported by ie5.5, so please pay attention when debugging.
We use several examples to explain the above style attributes:
1. Make the browser window never show a scroll bar
No horizontal scroll bar
<Body style = "overflow-x: hidden">
No vertical scroll bar
<Body style = "overflow-y: hidden">
No scroll bar
<Body style = "overflow-x: hidden; overflow-y: hidden"> or <body style = "overflow: hidden">
2. Set the scroll bar of the multi-line text box
No horizontal scroll bar
<Textarea style = "overflow-x: hidden"> </textarea>
No vertical scroll bar
<Textarea style = "overflow-y: hidden"> </textarea>
No scroll bar
<Textarea style = "overflow-x: hidden; overflow-y: hidden"> </textarea>
Or <textarea style = "overflow: hidden"> </textarea>
3. Set the color of the window scroll bar
Set the color of the window scroll bar to red <body style = "scrollbar-base-color: red">
Scrollbar-base-color sets the basic color. Generally, you only need to set this attribute to change the color of the scroll bar.

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.