ie6瀵osition:fixed涓锛缃涓寰澶瑙e虫规锛e6,ie7涓璋璇锛e8涓涓濂戒娇锛div灞杩婊ㄦ℃诞 浠ヤ荤规锛e6,ie7,ie8涓借璇锛涓椤甸㈡ㄦ℃ㄦ讹杩哄ソ锛div灞骞朵浼
浠g濡涓: <div id="goTop_div" class="fixed ie"> </div>
css:
浠g濡涓: .fixed{ position:fixed; /*瀵逛绛朵娴瑙ㄩ瑕璁剧疆*/ top:700px; /*涓*/ width:30px; height:30px; cursor:pointer; display:none; } .ie{ _position: absolute; _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); }
来源:http://www.jb51.net/article/50142.htm |