IE6 does not support position: fixed Solution

Source: Internet
Author: User
The notorious IE6, but you cannot ignore it. IE6 does not support position: fixed. The solution is as follows: first, to solve the problem of IE6 flashing, you may want to add this css: * html, * htmlbody {/*

The notorious IE6, but you cannot ignore it. IE6 does not support position: fixed. The solution is as follows:

First, to solve the problem of IE6 flashing, you may need to add this css:

* Html, * html body {/* only supports IE6 */

Background-image: url (about: blank);/* use an empty background */

Background-attachment: fixed;/* fixed background */

}

IE6 cannot be fixed. You need to use the css code to solve the problem:


/* Fixed the IE6 header */* html. fixed-top {position: absolute; bottom: auto; top: expression(eval(document.doc umentElement. scrollTop);}/* fixed to the right of IE6 */* html. fixed-right {position: absolute; right: auto; left: expression(eval(document.documentelement.scrollleft?document.doc umentElement. clientWidth-this.offsetWidth)-(parseInt (this. currentStyle. marginLeft, 10) | 0)-(parseInt (this. currentStyle. marginRight, 10) | 0);}/* fixed at the bottom of IE6 */* html. fixed-bottom {position: absolute; bottom: auto; top: expression(eval(document.documentelement.scrolltopdeskdocument.doc umentElement. clientHeight-this.offsetHeight-(parseInt (this. currentStyle. marginTop, 10) | 0)-(parseInt (this. currentStyle. marginBottom, 10) | 0);}/* fixed on the left of IE6 */* html. fixed-left {position: absolute; right: auto; left: expression(eval(document.doc umentElement. scrollLeft ));}
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.