Home  >  Article  >  Web Front-end  >  IE6 supports position:fixed perfect solution_Experience exchange

IE6 supports position:fixed perfect solution_Experience exchange

WBOY
WBOYOriginal
2016-05-16 12:04:421509browse

Today I went to a foreigner website and saw that his website was very smooth but had no js. I was curious, so it turns out. . It's clever. Share it. It saves resources relatively speaking. But the effect is good, easy to use, and takes into account w3c. Haha

Copy code The code is as follows:





ie-stuff.css

Copy code The code is 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);
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn