Ie6's perfect solution for postion: fixed
Today, I went to a foreign site and saw that the website was very smooth but not js. I was curious. It turned out to be .. Clever. In terms of sharing, resources are relatively saved. However, it works well and is easy to use, taking into account w3c. Haha
<! -- Compliance patch for microsoft browsers -->
<! -- [If lt IE 7]> <link rel = "stylesheet" href = "ie-stuff.css" type = "text/css" media = "screen"/> <! [Endif] -->
Ie-stuff.css
Copy the Code as follows:
# Footer {
Position: absolute;
Bottom: auto;
Clear: both;
Top: expression (eval (document. compatMode &&
Document. compatMode = 'css1compat ')?
DocumentElement. scrollTop
+ (DocumentElement. clientHeight-this.clientHeight)-1
: Document. body. scrollTop
+ (Document. body. clientHeight-this.clientHeight)-1 );
}
Detailed source reference: http://www.jb51.net/article/26681.htm