FOOTER固定在页面的顶部

来源:互联网 发布:淘宝上评论在哪里 编辑:程序博客网 时间:2024/05/20 21:18
#footer {    position: fixed;    left: 0px;    bottom: 0px;    height: 30px;    width: 100%;    background: #444;}/* IE 6 */* html #footer {    position: absolute;    top: expression((0-(footer.offsetHeight)+(document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight)+(ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop))+'px');}                   
0 0