题
什么HTML / CSS用于创建,填补了浏览器的底部,并保持在原位,当用户滚动条?请参见 envato.com 什么我谈论的想法。
解决方案
我用这个方法之前,它似乎工作得很好。
http://ryanfait.com/sticky-footer/
* {
margin: 0;
}
html, body {
height: 100%;
}
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -142px; /* the bottom margin is the negative value of the footer's height */
}
.footer, .push {
height: 142px; /* .push must be the same height as .footer */
}
不隶属于 StackOverflow