. Fixed-top {position: fixed; bottom: auto; top: 0px ;}. fixed-bottom {position: fixed; bottom: 0px; top: auto ;}. fixed-left {position: fixed; Right: auto; left: 0px ;}. fixed-right {position: fixed; Right: 0px; left: auto;}/* IE6 */* HTML, * html body {background-image: URL (about: blank ); background-Attachment: fixed;} * HTML. fixed-top {position: absolute; bottom: auto; top: expression(eval(document.doc umentelement. scrolltop);} * 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);} * 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);} * HTML. fixed-left {position: absolute; Right: auto; left: expression(eval(document.doc umentelement. scrollleft ));}
note that you need to check it when you want to use it frequently !!!