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