表格的代码:
<!DOCTYPE html>
<html>
<head>
<title>成绩单<title>
</head>
<body>
<table>
<table border="1" width="500" cellspacing="10" style="border-color:Green;border-collapse:collapse;">
<tr>
<th>班主任的</th>
<th>姓名</th>
<th>数学</th>
<th>语文</th>
<th>社会</th>
<th>自然</th>
<th>历史</th>
<th>化学</th>
</tr>
<tr>
<td rowspan="5">罗贯中</td>
<td>马德超</td>
<td>11</td>
<td>22</td>
<td>33</td>
<td>44</td>
<td>55</td>
<td>66</td>
</tr>
<tr>
<td>11</td>
<td>22</td>
<td>33</td>
<td>44</td>
<td>55</td>
<td>66</td>
</tr>
<tr>
<td>李世民</td>
<td>11</td>
<td>22</td>
<td>33</td>
<td>44</td>
<td>55</td>
<td>66</td>
</tr>
<tr>
<td>秦始皇</td>
<td>11</td>
<td>22</td>
<td>33</td>
<td>44</td>
<td>55</td>
<td>66</td>
</tr>
<tr>
<td>美丽乡</td>
<td>11</td>
<td>22</td>
<td>33</td>
td>55</td>
<td>66</td>
</tr>
<tr>
<td colspan="8">
总人数:8,平均分数:20 ,评价太差!
</td>
</tr>
</table>
</body>
</html>
border="1" 表示边框的粗细值
width="500" 表格的宽度
cellspacing="10" 单元格之间的距离
style="border-color:Green;border-collapse:collapse; 单元格的线段颜色 单元格之间的线段的宽度
阅读(1084) | 评论(0) | 转发(0) |