您的位置:程序门 -> web 开发 -> html(css)



菜鸟问题,关于table的,请大家多帮忙


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


菜鸟问题,关于table的,请大家多帮忙[已结贴,结贴人:xm13006162749]
发表于:2007-06-29 16:09:17 楼主
<table   width= "100% "   height= "100% "   border= "1 "   >
    <tr>
        <td> 123456 <td>        
    </tr>    
</table>
就是希望这个表格填充整个浏览器界面,结果宽是对了,可是高度只有一点,我该怎么办?如果我想在这个表中间再插入一张表2,填充满整个表1,我该怎么设置,谢谢了。
发表于:2007-06-29 16:14:041楼 得分:0
<table   style= "width:100%;height:100% "   border= "1 "   cellpadding= "0 "   cellspacing= "0 ">
<tr>
<td>

<table   style= "width:100%;height:100% "   border= "1 "   cellpadding= "0 "   cellspacing= "0 ">
<tr>
<td>
ssss
<td>
</tr>
</table>

<td>
</tr>
</table>
发表于:2007-06-29 16:28:172楼 得分:0
ls的,我试了一下,还是老样子,不行啊
发表于:2007-06-29 16:42:333楼 得分:30
height是在这里(外层)指定为100%是无效的,应该设为定值。
<table   style= "width:100%;height:300px "   border= "1 "   cellpadding= "0 "   cellspacing= "0 ">
    <tr>
        <td   height= "100% "> <table   style= "width:100%;height:100% "   border= "1 "   cellpadding= "0 "   cellspacing= "0 ">
            <tr>
                <td> 1111 </td>
                <td> 2222 </td>
            </tr>
            <tr>
                <td> 3333 </td>
                <td> 4444 </td>
            </tr>
        </table> </td>        
    </tr>    
</table>


快速检索

最新资讯
热门点击