IE6 supports position:fixed perfect solution_Experience exchange

WBOY
Release: 2016-05-16 12:04:42
Original
1496 people have browsed it

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);
}
Related labels:
ie6
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!