首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

高度100%有关问题

2012-01-02 
高度100%问题.tableborder 1 style width:100%height:100% trtdstyle width:100px /td

高度100%问题.
<table   border= "1 "   style= "width:   100%;   height:   100% ">
          <tr>
                <td   style= "width:   100px ">
                </td>
            </tr>
</table>

宽度到时100%,而高度由于没有内容,只显示了一点高度,请问怎样才能在表格没内容的情况下,也能保证表格高度的100%

[解决办法]
<table border= "1 " style= "width: 100%; height: 100% ">
<tr>
<td style= "width: 100px "> &nbsp;
</td>
</tr>
</table>

加空格
[解决办法]
楼上正解
[解决办法]
楼上的楼上正解
[解决办法]
<table border= "1 " style= "width: 100%; height: 100% ">
<tr>
<td style= "width: 100%; height:100%; " nowrap= "nowrap "> <!--这句最关键-->
</td>
</tr>
</table>
[解决办法]
要效果可以定如:height:600px

热点排行