这里是什么,我想完成CSS:我怎么能长出左侧浮动的div到100%
<div style="width:700px;border: thin solid black">
<div style="float:left;">
<div style="border: thin solid green;width:400px;height:50px"></div>
<div style="border: thin solid green;width:400px;height:50px"></div>
<div style="border: thin solid green;width:400px;height:50px"></div>
</div>
<div style="float:left;">
<div style="border: thin solid red;width:250px;height:100% "></div>
</div>
<div style="clear: both;"></div>
</div>
红色div的高度应扩大jfiddle。
我想有一个扩大到其父母的高度的100%的股利。因为在运行时不会知道大小。
我在做什么错?
谢谢你,但我不知道家长将有多大,所以我不能指定高度。 – Fuzz
你知道你的red-div应该至少有多高吗? 在这种情况下,您可以将红色DIV包裹在另一个DIV中,并将内部DIV设置为: min-height:无论px; – caniball
like:http://jsfiddle.net/fA2v8/5/ – caniball