【发布时间】:2012-04-11 03:52:13
【问题描述】:
我试图让我的页脚停留在该网站的页面底部:https://account.radonsystems.net。
不幸的是,它似乎无法正常工作,尽管它在我使用过的其他任何地方都可以正常工作。
这是粘性的 CSS:
html, body {height: 100%;}
#wrap {min-height: 100%;}
#main {overflow:auto;
padding-bottom: 57px;} /* must be same height as the footer */
#footer {position: relative;
margin-top: -57px; /* negative value of footer height */
height: 35px;
clear:both;}
/*Opera Fix*/
body:before {
content:"";
height:100%;
float:left;
width:0;
margin-top:-32767px;/
}
.footer a,.footer a:hover{text-decoration:underline;color:#FFF;}
有没有人知道为什么它不粘在底部?
【问题讨论】:
标签: html css sticky-footer