submaze 发表于 2013-2-7 15:07:32

一段始终保持在最底部的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*/}

注意:代码在使用过程中_top:expression...这一行代码,遇到不兼容IE7的JS问题
页: [1]
查看完整版本: 一段始终保持在最底部的div css代码