【发布时间】:2016-01-15 15:41:04
【问题描述】:
【问题讨论】:
-
嗨,我也考虑过使用 jquery。我提出了类似的解决方案jsfiddle.net/5d9R7。只要您不减小窗口的大小,就可以正常工作。有什么想法吗?
【问题讨论】:
由于您的页眉和页脚具有特定的高度,因此简单的方法是执行以下操作:
// Add the following to #wrapper
#wrapper {
position: absolute;
top: 200px;
left: 0;
right: 0;
bottom: 200px;
// IMPORTANT
// REMOVE the following rule:
// min-height: 100%;
}
记得从#wrapper中删除min-height: 100%;
这是fiddle。祝你好运...
【讨论】: