[html]代码库
<html>
<head>
<title>
表格
</title>
<meta charset="UTF-8">
</head>
<body>
<table width="1000" height="100" border="5" align="center" cellspacing="2" cellpadding="15" frame="box" rules="clos" bgcolor="yellow">
<caption align="top">表格的标题</caption>
<tr bgcolor="green" align="center" valign="center">
<th bgcolor="red" align="center" width="250" height="50" >班级</th>
<th bgcolor="green" rowspan="1" colspan="1">姓名</th>
<th bgcolor="blue">年龄</th>
<th bgcolor="#ccc">成绩</th>
</tr>
<tr>
<td>四年级1班</td>
<td>张三</td>
<td>16</td>
<td>80</td>
</tr>
<tr>
<td>四年级1班</td>
<td>李四</td>
<td>14</td>
<td>90</td>
</tr>
<tr>
<td>四年级1班</td>
<td>王五</td>
<td>18</td>
<td>50</td>
</tr>
</table>
</body>
</html>