我认为你需要将你身体的大小改变到100%。这是一个很好的网站,帮助我解决了这个问题。 http://ryanfait.com/sticky-footer/
他是这样做的:
* {
margin: 0;
}
html, body {
height: 100%;
}
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -155px;
}
.footer, .push {
height: 155px; /* .push must be the same height as .footer */
}
您还需要将页脚移出身体才能发挥作用。
我将其添加到我的网站,但仍然没有结果,您可以搜索mailboxtemporary.net我的网站,它已添加到我的网站我的选民,但没有任何工作可以帮助您??