展开全部
我自己也是刚学,整了一会,直接头晕了,见谅,你看看如何。
<body>
<table bgcolor="#FFFFFF" width="600" height="300" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table width="423" height="214" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="428" height="53" align="top" bgcolor="#000000" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="21"></td>
</tr>
</table></td>
</tr> <tr>
<td height="155" align="center" bgcolor="#FFFF00"><table width="243" height="228" align="center" bgcolor="#0000CC" border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr></table></td>
</tr><tr>
<td><table width="429" height="52" align="left" bgcolor="#FF0000" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="21"></td>
</tr>
</table></td></tr>
</table>
</td>
</tr>
</table>
</body>
<body>
<table bgcolor="#FFFFFF" width="600" height="300" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table width="423" height="214" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="428" height="53" align="top" bgcolor="#000000" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="21"></td>
</tr>
</table></td>
</tr> <tr>
<td height="155" align="center" bgcolor="#FFFF00"><table width="243" height="228" align="center" bgcolor="#0000CC" border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr></table></td>
</tr><tr>
<td><table width="429" height="52" align="left" bgcolor="#FF0000" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="21"></td>
</tr>
</table></td></tr>
</table>
</td>
</tr>
</table>
</body>
追问
关键是我的宽度要自适应,,100%。疯了
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询