一段始终保持在最底部的div css代码

.footer
{
    background: #eee;
    text-align: center;
    bottom:0px;
    position:fixed;

    height: 30px;
    line-height: 30px;
    width: 100%;
    _position: absolute; /*兼容IE6*/
    _top: expression(offsetParent.scrollTop+document.documentElement.clientHeight-this.offsetHeight); /*兼容IE6*/
}

posted on 2012-08-16 14:51  star-star  阅读(298)  评论(0编辑  收藏  举报

导航