Position:fixed Positioning compatibility Writing course in IE6
This article mainly introduces the "position:fixed positioning compatibility writing tutorial in IE6". In the daily operation, I believe that many people have doubts about the position:fixed positioning compatibility writing tutorial in IE6. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "position:fixed positioning compatibility writing tutorial in IE6". Next, please follow the editor to study!
The code is as follows:
/ * modified IE6 vibration bug * /
Html,* html body {background-image:url (about:blank); background-attachment:fixed;}
/ * IE6 head fixed * /
Html. Fixed-top {position:absolute;bottom:auto;top:_expression (eval (document.documentElement.scrollTop));}
/ * IE6 fixed to the right * /
Html. Fixed-right {position:absolute;right:auto;left:_expression (eval (document.documentElement.scrollLeft+document.documentElement.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.scrollTop+document.documentElement.clientHeight-this.offsetHeight- (parseInt (this.currentStyle.marginTop,10) | | 0)-(parseInt (this.currentStyle.marginBottom,10) | | 0));}
/ * IE6 fixed on the left * /
* html. Fixed-left {position:absolute;right:auto;left:_expression (eval (document.documentElement.scrollLeft));}
At this point, the study on the "position:fixed location compatibility Writing course in IE6" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!