HTML:
<div id="header">
</div>
<div id="wrapper">
<div id="col1">
Lorem Ipsum<br/>Lorem Ipsum<br/>Lorem Ipsum<br/>Lorem Ipsum<br/>
</div>
<div id="col2">
</div>
<div id="col3">
Lorem Ipsum<br/>Lorem Ipsum
</div>
</div>
<div id="footer">
</div>
CSS:
#header{background:#aaa;height:100px}
#wrapper{background:#000;float:left}
#col1{background:#f00;float:left;width:300px}
#col2{background:#0f0;float:left;width:5px;height:100%} /* DOESN'T WORK */
#col3{background:#ff0;float:left;width:300px}
#footer{background:#aaa;height:100px;clear:both}
JSFiddle:http: //jsfiddle.net/Ya9RR/16/
如何使任何一个col
具有 100% 的高度?