<!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=gb2312" />
<title>IE6.0 position fixed 屏幕绝对定位</title>
<style type="text/css">
*{ padding:0;border:0;margin:0;}
/*让position:fixed在IE6下可用!*/
.fixed-top/*头部固定*/{position:fixed;bottom:auto;top:0px;width:100%;height:40px;background-color:#FF0000;;}
.fixed-bottom/*底部固定*/{position:fixed;bottom:0px;top:auto;width:100%;height:40px;background-color:#00FF00;}
.fixed-left/*左侧固定*/{position:fixed;right:auto;left:0px;height:300px;width:200px;background-color:#0000FF;margin-top:200px;}
.fixed-right/*右侧固定*/{position:fixed;right:0px;left:auto;height:300px;width:200px;background-color:#FFFF00;margin-top:200px;}

/*上面的是除了IE6的主流浏览器通用的方法*/
*html, *html body/*修正IE6振动bug*/{background-p_w_picpath:url(about:blank);background-p_w_upload:fixed;}

*html .fixed-top/*IE6头部固定*/{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));}
*html .fixed-bottom/*IE6底部固定*/{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));}
*html .fixed-left/*IE6左侧固定*/{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft));}
*html .fixed-right/*IE6右侧固定*/{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,10)||0)-(parseInt(this.currentStyle.marginRight,10)||0));}
</style>
</head>

<body>
<div class="fixed-top"> {fixed-top} </div>
<div class="fixed-bottom"> {fixed-bottom} </div>
<div class="fixed-left"> {fixed-left} </div>
<div class="fixed-right"> {fixed-right} </div>
<div style=" margin-top:40px;padding-bottom:40px;">
  <div style="width:800px;background-color:#CCCCCC;margin:auto;line-height:100px;text-align:center;"> 1<br />
    2<br />
    3<br />
    4<br />
    5<br />
    6<br />
    7<br />
    8<br />
    9<br />
  </div>
</div>
</body>
</html>

参考:

http://www.cnblogs.com/hooray/archive/2011/05/20/2052269.html

http://wenku.baidu.com/view/2255abc4bb4cf7ec4afed062.html