博客列表 >1017作业:表格实战

1017作业:表格实战

P粉751989631
P粉751989631原创
2022年10月18日 20:04:26376浏览

```<!DOCTYPE html>

<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>课程表</title>
</head>
<body>
<!-- 表格样式 -->
<table border="2">
<!-- caption标题 -->
<caption>
课程表
</caption>
<!-- thead表头 -->
<thead>
<tr>
<th>节次/星期</th>
<th>时间</th>
<th>星期一</th>
<th>星期二</th>
<th>星期三</th>
<th>星期四</th>
<th>星期五</th>
</tr>
</thead>
<!-- 表体 -->
<tbody>
<tr>
<th rowspan="4">上午</th>
<th>8:00-8:40</th>
<th>语文</th>
<th>数学</th>
<th>英语</th>
<th>化学</th>
<th rowspan="7">物理</th>
</tr>

  1. <tr>
  2. <!-- <th>上午</th> -->
  3. <th>8:50-9:30</th>
  4. <th>数学</th>
  5. <th>化学</th>
  6. <th>英语</th>
  7. <th>语文</th>
  8. <!-- <th>物理</th> -->
  9. </tr>
  10. <tr>
  11. <!-- <th>上午</th> -->
  12. <th>9:40-10:20</th>
  13. <th>语文</th>
  14. <th rowspan="2">英语</th>
  15. <th rowspan="2">数学</th>
  16. <th rowspan="2">化学</th>
  17. <!-- <th>物理</th> -->
  18. </tr>
  19. <tr>
  20. <!-- <th>上午</th> -->
  21. <th>10:30-11:20</th>
  22. <th>英语</th>
  23. <!-- <th>数学</th> -->
  24. <!-- <th>英语</th> -->
  25. <!-- <th>化学</th> -->
  26. <!-- <th>物理</th> -->
  27. </tr>
  28. <tr>
  29. <th rowspan="4">下午</th>
  30. <th>14:00-14:40</th>
  31. <th>语文</th>
  32. <th>化学</th>
  33. <th rowspan="2">英语</th>
  34. <th>数学</th>
  35. <!-- <th>物理</th> -->
  36. </tr>
  37. <tr>
  38. <!-- <th>上午</th> -->
  39. <th>14:50-15:30</th>
  40. <th>数学</th>
  41. <th rowspan="2">数学</th>
  42. <!-- <th>英语</th> -->
  43. <th rowspan="2">化学</th>
  44. <!-- <th>物理</th> -->
  45. </tr>
  46. <tr>
  47. <!-- <th>上午</th> -->
  48. <th>15:40-16:40</th>
  49. <th>物理</th>
  50. <!-- <th>化学</th> -->
  51. <th>物理</th>
  52. <!-- <th>化学</th> -->
  53. <!-- <th>物理</th> -->
  54. </tr>
  55. </tbody>
  56. <!-- 表尾 -->
  57. <tfoot>
  58. <tr></tr>
  59. </tfoot>
  60. </table>

</body>
</html>
```

运行结果

声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议