最简单的就是:
position:fixed;
bottom:0
* {
margin: 0;
}
html, body {
height: 100%;
}
.wrapper {
min-height: 100%;
margin: 0 auto -60px; /* -60pxthe bottom margin is the negative value of the footer's height */
}
footer, .push {
height: 60px; /* '.push' must be the same height as 'footer' */
}