可能重复:
如何让页脚停留在网页底部?
这个页面上的第二个背景图像没有正确定位...我正在努力想出一个修复...我总是需要页脚位于页面底部. min-height不起作用,因为我需要它始终保持在底部而不管它们的分辨率.
这是一个CSS修复?
-URL REMOVED-
听起来你正在寻找一个粘性的页脚.
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 */
}
/*
Sticky Footer by Ryan Fait
http://ryanfait.com/
*/
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4347 次 |
| 最近记录: |