代码: <body> <h2 align="center">表格布局</h2> <!--显示菜单--> <table border="1" align="center" bordercolor="black" height="225px" cellpadding="1px" cellspacing="10px" width="400px"> <tr> <!--colspan="4"表该列要占用4列--> <td align="center" colspan="8" >topFrame</td> </tr> <tr> <td colspan="2" align="center">leftFrame</td> <td colspan="6" align="center">mainFrame</td> </tr> <tr> <td align="center" colspan="8" >footFrame</td> </tr> </table> </body>
效果: