设置外边框是指只允许四周有边框,单元格无边框,需要使用CSS实现,
具体代码如下:
<table border="0" cellpadding="0" cellspacing="0" style="border:1px solid #F00;"><!-- style等号里的就是CSS,意思:边框宽度是1个像素,实线,颜色为红色 -->
<tr>
<td width="120" height="30" align="center">01</td>
<td width="120" height="30" align="center">02</td>
<td width="120" height="30" align="center">03</td>
</tr>
<tr>
<td width="120" height="30" align="center">04</td>
<td width="120" height="30" align="center">05</td>
<td width="120" height="30" align="center">06</td>
</tr>
<tr>
<td width="120" height="30" align="center">07</td>
<td width="120" height="30" align="center">08</td>
<td width="120" height="30" align="center">09</td>
</tr>
<tr>
<td width="120" height="30" align="center">10</td>
<td width="120" height="30" align="center">11</td>
<td width="120" height="30" align="center">12</td>
</tr>
<tr>
<td width="120" height="30" align="center">13</td>
<td width="120" height="30" align="center">14</td>
<td width="120" height="30" align="center">15</td>
</tr>
<tr>
<td width="120" height="30" align="center">16</td>
<td width="120" height="30" align="center">17</td>
<td width="120" height="30" align="center">18</td>
</tr>
</table>