css 固定位置


<style type="text/css">
#fixed{position:fixed;bottom:0px; }   针对IE7、Opera、Firefox一行搞定
</style>
<!--[if IE 6]>
<style type="text/css">
html{overflow:hidden;}
body{height:100%;overflow:auto;}
#fixed{position:absolute;bottom:0px;}
fixed元素的绝对位置是相对于HTML元素来说,滚动条是body元素的,这是设置right:17px的原因
</style>
<![endif]-->
<!--[if lt IE 6]>
<style type="text/css">
#fixed{position:absolute;bottom:expression(eval(document.body.scrollTop 50));}
</style>
<![endif]-->
 
豫ICP备12024565号-1   E-mail:admin@hlc8.com