写一个表格,注意单元格的合并,单元格跨行合并。
具体代码如下:
<!DOCTYPE html>
<html>
<title>课程表</title>
<meta charset="UTF-8">
<head>
<link href="./table.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<center>课程表</center>
<table border = 6 frame = void align = center width = 650px height = 120px >
<tr height = 40px align = center>
<td>项目</td><td colspan="5">上课</td><td colspan="2">休息</td>
</tr>
<tr height = 40px align = center>
<td>星期</td><td>星期一</td><td>星期二</td><td>星期三</td><td>星期四</td><td>星期五</td><td>星期六</td><td>星期日</td>
</tr>
<tr height = 40px align = center>
<