日期:2014-05-16  浏览次数:20789 次

怎么让表哥最后一行填满整个div
<div id="rdrr">
<table class="rdrrtable" style="text-align:center;width:200px;">
 <tr> 
 <td style="width:120px">业务类型</td>
 <td>业务量</td>
 </tr>
  <tr>
 <td>电量电费分析</td>
 <td>18</td>
 </tr>
</table>
</div>
假设我div的height设置200px,我怎么让table中的最后一行填满剩余的div空间,其他行是正常高度。

------解决方案--------------------
一般我会弄2个
一个table  poaition:absolute top:0
一个div poaition:absolute bottom:0

上下拼起来看起来是一个整体
下面那个div 可以做的高点
------解决方案--------------------
<table height="100%" 
最后行不要设置高度,其它行设置固定高度