ITeye博客

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

submaze · 2012-11-28 22:54 · UI · Web前端 · Markdown



.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*/
}

注意:代码在使用过程中_top:expression...这一行代码,遇到不兼容IE7的JS问题

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。