靈活的高度,我有兩個DIV箱左右...我需要在正確的格框,左框的內容靈活房源的高度是不固定的......也就是說,如果我在「左格添加一些內容框」 ..然後 '權利DIV盒子' 自動流內容框的高度應相應地調整
這裏是一個link極品溢出DIV內容
/CSS/
.dvleft{float:left;} .dvright{float:right}.dv100per{width:100%;float:left}
.grey_bg2{padding: 5px 0px 8px 7px;background-color:#F7F7F7;color:#000; font-size:13px}
.mTop5{margin-top:5px;}.mTop10{margin-top:10px}.mTop20{margin-top:20px}.mleft15{margin-left:15px;}
.contactlist{background-color:#FFF;float:left;width:100%;padding: 5px 0px 10px 0px;height:239px;overflow:auto}
.sharecon{float:left;width:100%; border-bottom:solid 1px #e6e6e6; padding:3px 0 6px 0}
/HTML/
<div class="dvright grey_bg2 mTop20" style="width: 365px; padding: 7px 8px 10px 8px;">
<div class="dv100per">
<span class="dvleft">
<strong>Right Box</strong>
</span>
</div>
<div class="contactlist">
<div class="sharecon">
<span class="dvleft">
<input type="checkbox" name="checkbox">
</span>
<span class="dvleft mleft15">
<strong class="text11">abc123..</strong>
</span>
<span class="dvleft mleft15">[email protected]</span>
</div><!--sharecon-->
<div class="sharecon">
<span class="dvleft">
<input type="checkbox" name="checkbox">
</span>
<span class="dvleft mleft15">
<strong class="text11">abc123..</strong>
</span>
<span class="dvleft mleft15">[email protected]</span>
</div><!--sharecon-->
<div class="sharecon">
<span class="dvleft">
<input type="checkbox" name="checkbox">
</span>
<span class="dvleft mleft15">
<strong class="text11">abc123..</strong>
</span>
<span class="dvleft mleft15">[email protected]</span>
</div><!--sharecon-->
<div class="sharecon">
<span class="dvleft">
<input type="checkbox" name="checkbox">
</span>
<span class="dvleft mleft15">
<strong class="text11">abc123..</strong>
</span>
<span class="dvleft mleft15">[email protected]</span>
</div><!--sharecon-->
<div class="sharecon">
<span class="dvleft">
<input type="checkbox" name="checkbox">
</span>
<span class="dvleft mleft15">
<strong class="text11">abc123..</strong>
</span>
<span class="dvleft mleft15">[email protected]</span>
</div><!--sharecon-->
<div class="sharecon">
<span class="dvleft">
<input type="checkbox" name="checkbox">
</span>
<span class="dvleft mleft15">
<strong class="text11">abc123..</strong>
</span>
<span class="dvleft mleft15">[email protected]</span>
</div><!--sharecon-->
<div class="sharecon">
<span class="dvleft">
<input type="checkbox" name="checkbox">
</span>
<span class="dvleft mleft15">
<strong class="text11">abc123..</strong>
</span>
<span class="dvleft mleft15">[email protected]</span>
</div><!--sharecon-->
<div class="sharecon">
<span class="dvleft">
<input type="checkbox" name="checkbox">
</span>
<span class="dvleft mleft15">
<strong class="text11">abc123..</strong>
</span>
<span class="dvleft mleft15">[email protected]</span>
</div><!--sharecon-->
<div class="sharecon">
<span class="dvleft">
<input type="checkbox" name="checkbox">
</span>
<span class="dvleft mleft15">
<strong class="text11">abc123..</strong>
</span>
<span class="dvleft mleft15">[email protected]</span>
</div><!--sharecon-->
<div class="sharecon">
<span class="dvleft">
<input type="checkbox" name="checkbox">
</span>
<span class="dvleft mleft15">
<strong class="text11">abc123..</strong>
</span>
<span class="dvleft mleft15">[email protected]</span>
</div><!--sharecon-->
<div class="sharecon">
<span class="dvleft">
<input type="checkbox" name="checkbox">
</span>
<span class="dvleft mleft15">
<strong class="text11">abc123..</strong>
</span>
<span class="dvleft mleft15">[email protected]</span>
</div><!--sharecon-->
</div><!--contactlist-->
</div><!--Right Block Ends Here--->
</div>
請詳細說明你的問題。 –
我需要爲我插入左格框更多的內容來調整合適的div的高度...請檢查的jsfiddle ... – Gaurav