html之一行代码给table设置标题...

关键代码:<caption align="top">我是表格标题</caption>


效果截图如下:



主要代码如下:


<table border="1" align="center">
<caption align="top">我是表格标题</caption>
 <tr><td width="50">1</td>	<td width="50">A</td>	<td width="50">TE</td>	</tr>
<tr><td width="50">2</td>	<td width="50">A</td>	<td width="50">TE</td>	</tr>
<tr><td width="50">3</td>	<td width="50">A</td>	<td width="50">TE</td>	</tr>
<tr><td width="50">4</td>	<td width="50">A</td>	<td width="50">TE</td>	</tr>
<tr><td width="50">5</td>	<td width="50">A</td>	<td width="50">TE</td>	</tr>


</table>


你可能感兴趣的:(html,table,border)