CSS代码如下:
.btfixed {width:1000px;margin:0 auto; overflow:hidden;}
.btfixed .btfixed_img {position:fixed;bottom:0;z-index:9999;_position:absolute;_left:auto;_top:expression(eval(documentElement.scrollTop+document.documentElement.offsetHeight-77));}HTML代码如下:
<div class="btfixed">
<div class="btfixed_img">
    <img src="images/btg.png" usemap="#navmap" height="77" width="1000">   </div>
</div>
在IE6以外的浏览器上正常。但在IE6,浏览器的滚动条可以无限往下拉,这是怎么回事? 

解决方案 »

  1.   

    .btfixed .btfixed_img {position:fixed;bottom:0;z-index:9999;_position:absolute;_bottom:-1px;;_left:auto;}
      

  2.   

    我这里测试正常,你可能是代码的其他部分有问题吧。<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <style>
    .btfixed {width:1000px;margin:0 auto; overflow:hidden;}
    .btfixed .btfixed_img {position:fixed;bottom:0;z-index:9999;_position:absolute;_bottom:-1px;;_left:auto;}
    </style>
    </head>
    <body>
    <div class="btfixed">
    <div class="btfixed_img">
        <img src="images/btg.png" usemap="#navmap" height="77" width="1000">   </div>
    </div></body>
    </html>