【发布时间】:2010-12-19 07:34:25
【问题描述】:
如果我有这样的 div 布局:
<div id="stretchyheader"></div>
<div id="fixedwidthwide"><div>
<div id="fixednarrow></div>
<div id="footer"></div>
这使得这样的事情:
-----------------------------------------------------
| stretchyheader |
-----------------------------------------------------
| | |
| | |
| fixedwidthwide | fixednarrow |
| | |
| | |
| | --------------
| |
| |
| | patterned
| | background
-----------------------
- footer -
如何确保两列与最深列的高度相同?列高可根据内容量灵活调整,并具有白色背景。
【问题讨论】: