请老师检查
来源:4-8 自由编程
surper_go
2020-10-13 19:22:13
<!DOCTYPE html>
<html>
<head>
<title>kebiao.html</title>
</head>
<body>
<table border="1px" width="1000px">
<caption>课程表</caption>
<thead>
<tr>
<th></th>
<th>星期一</th>
<th>星期二</th>
<th>星期三</th>
<th>星期四</th>
<th>星期五</th>
</tr></thead>
<tbody>
<tr>
<th rowspan="2">上午</th>
<th>语文</th>
<th>数学</th>
<th>外语</th>
<th>数学</th>
<th>语文</th>
</tr>
<tr>
<th>数学</th>
<th>外语</th>
<th>语文</th>
<th>历史</th>
<th>政治</th>
</tr>
<tr>
<th colspan="6">休息</th>
</tr>
<tr>
<th rowspan="2">下午</th>
<th>历史</th>
<th>体育</th>
<th>音乐</th>
<th>政治</th>
<th>美术</th>
</tr>
<tr>
<th>班会</th>
<th>自习</th>
<th>自习</th>
<th>自习</th>
<th>自习</th>
</tr></tbody>
<tfoot>
<tr>
<th colspan="6">晚自习</th>
</tr>
</tfoot>
</table>
</body>
</html>
1回答
好帮手慕小尤
2020-10-14
同学你好,1. 上午和下午的4行中文字需要居左显示。同学可以在<tr>标签中添加align="left"以上午为例:
2. 按照作业需求,只有星期一、星期二”等为列标题,其他元素使用td标签即可。如上图所示
祝学习愉快!
相似问题