您可以使用display:table-cell
,但请注意它不适用于旧浏览器。
HTML:
<div class="wrapper">
<div class="left">
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
</div>
<div class="separator"></div>
<div class="right">
<p>Right</p>
<p>Right</p>
<p>Right</p>
<p>Right</p>
<p>Right</p>
<p>Right</p>
<p>Right</p>
<p>Right</p>
<p>Right</p>
<p>Right</p>
</div>
</div>
<div class="footer"></div>
CSS:
.wrapper{
width: 500px;
display:table;
}
.wrapper>div{display:table-cell;}
.left{
border:10px solid #0188ed;
margin-right:10px;
background: #0150e1;
width: 180px;
}
.right{
width:270px;
border:10px solid #0188ed;
background: #0150e1;
}
.footer{
background:#0181ec;
height: 50px;
width: 500px;
border-top: 10px solid #ffffff;
}
演示:http://jsfiddle.net/5fA3q/12/