日期:2014-05-17 浏览次数:20841 次
  <style type="text/css">
        .b {
            position:fixed;
            position:absolute;
            left:50%;
        }
  </style>
------解决方案--------------------
.b{
  position:absolute;
  bottom:0;
  z-index:1000;
}
------解决方案--------------------
.b {
z-index:auto;
position:fixed;
bottom: 1px;
margin:auto;
}
即可
------解决方案--------------------
.b
{
position:fixed;
bottom:0px;
}
用position的fixed值(绝对定位,相对于浏览器窗口)
------解决方案--------------------
如果页面比较简单,你可以直接写在 body 之中:
body{background:#fff url(1.jpg) no-repeat center bottom;}
楼上用到了 position:fixed , 但是 ie6 的支持不好, 需要你使用额外代码