Correction of CSS position: fixed in IE6

Source: Internet
Author: User

IE6 does not support CSS position: fixed, so it needs to be written in other ways.

There are many solutions that can be found on the internet. They are listed on the following webpage as references. If you are interested, you can study the solution on your own ~


Correction of CSS position: fixed by IE6
Write my practice here:

The code is as follows: Copy code

# Id_or_class_name {
Position: fixed! Important;
_ Position: absolute;
Bottom: 0;
/* _ Bottom:-20px ;*/
_ Z-index: 10;
Right: 0;
}

During modification, what is normal? The g browser modifies bottom and right, for IE6, such as _ bottom and _ right. (The preceding right can be shared repeatedly, so it will not be written on it. (If you want to appear in other regions, change it to top/left .. wait .)

? : _ Bottom and _ z-index are all for IE6.

IE6's solution to CSS position: fixed 2
I have not tested this solution, but it looks similar. The method is short. For details, see position: fixed Hack of IE6. The following is an excerpt from this solution:

The code is as follows: Copy code

Html, body {height: 100%; overflow: auto ;}
Div {position: absolute ;}
Body & gt; div {position: fixed ;}

? : The first two rows are for IE6, and the last row is normal? G browser.

Related Article

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.