日期:2014-05-18  浏览次数:20745 次

请问有谁知道在一个TD里放入一个TABLE时,要这个TABLE无上刚好填满这个TD,
请问有谁知道在一个TD里放入一个TABLE时,要这个TABLE无上刚好填满这个TD,这个TD有多个的,而这个TD所在的TR是动态得来的,可能N多行.

------解决方案--------------------
<table cellpadding= "0 " cellspacing= "0 ">
<tr>
<td>
<table>
<tr>
<td>
</td>
</tr>
</table>
</td>
</tr>
</table>
------解决方案--------------------
你为什么要这样。
是不是因为有时候,table中的内容太少不好看?

如果是这样的话。你可以定义表的height属性。就可以了
------解决方案--------------------
td:style= "padding:0px ";
table:style= "height:100%;width:100%;margin:0px; "
------解决方案--------------------
<table cellpadding= "0 " cellspacing= "0 "> 这个也要
------解决方案--------------------
lz试试 <table height= "100% "> 行不行。
------解决方案--------------------
<table border= "0 " width= "100% " height= "100% ">
</table>
------解决方案--------------------
<table valign=top>