How to solve the problem of IE6 position:fixed fixed location
This article will explain in detail how to solve the problem of IE6 position:fixed fixed positioning. The content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
And everyone focus on how to solve the IE6 position:fixed fixed positioning problem, position:fixed; in CSS can make some elements on the page fixed in an absolute position, even if the position of the scroll bar does not change, I hope this article will be helpful to your study.
Solve the problem of IE6 position:fixed fixed positioning
Position:fixed; allows you to fix an element on a web page in an absolute position, even if you pull the scroll bar.
General position:fixed; implementation method of ◆
View sourceprint?
1.#top {2. Position fixed; 3. Bottomize 0; 4 right0; 5.}
The method of realizing position:fixed; in IE6 by ◆
View sourceprint?
1.#top {2. Locate document.documentElement.scrollTop+document; 3. Eval bottomize auto; eval (document.documentElement.scrollTop+document. DocumentElement.clientHeight-this. OffsetHeight- (parseInt (this.currentStyle.marginTop,10) | | 0)-(parseInt (this.currentStyle.marginBottom,10) | | 0)); 5.}
◆ position:fixed; flicker problem
At present, the problem has not been completely solved. After using the above method, you will find that the fixed element flashes as you scroll through the bar. The solution to the flashing problem is to add to the CSS file:
View sourceprint?
1.*html {2.background-image:url (about:blank); 3.background, attach, fix; 4.}
* for IE6
On how to solve the IE6 position:fixed fixed positioning problem to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.