【发布时间】:2013-06-01 07:07:09
【问题描述】:
#wrapper {
display: table;
min-height: 100%;
height: 100%;
margin: 0px auto;
}
#header-wrap,
#content-wrap,
#footer-wrap {
display: table-row;
height: 1px;
}
#content-wrap {
height: auto;
}
<div id="wrapper">
<div id="header-wrap"></div>
<div id="content-wrap">
<section id="content"></section>
</div>
<div id="header-wrap"></div>
</div>
#wrapper 充当表格,其中#header-wrap、#content-wrap 和#footer-wrap 是有助于将页脚推到页面底部的表格单元格。
我怎样才能得到部分 #content 填充 #content-wrap的高度?
我不会使用绝对定位。
【问题讨论】:
标签: html css height sticky-footer css-tables