Blogger Information
Blog 9
fans 0
comment 0
visits 3492
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
1017作业——课程表
手机用户284061708
Original
366 people have browsed it

课程表

作业说明

  • 本次作业选择课程表完成
  • 以时间节点为基础
  • 使用简单css样式美化表格背景和居中
  • 有使用行与列的合并

代码如下:

  1. <!-- 课程表 -->
  2. <table border="1" style="text-align: center;">
  3. <caption >课程表</caption>
  4. <!-- 表头 时间 课程 -->
  5. <thead style="background-color: #F0FFFF;">
  6. <tr>
  7. <th colspan="3">时间</th>
  8. <th colspan="5">课程</th>
  9. </tr>
  10. </thead>
  11. <!-- 表体 上午,下午,星期,具体课程 -->
  12. <tbody>
  13. <tr>
  14. <td rowspan="8" style="background-color: Beige ;">上午</td>
  15. <td colspan="2">时间</td>
  16. <td>星期一</td>
  17. <td>星期二</td>
  18. <td>星期三</td>
  19. <td>星期四</td>
  20. <td>星期五</td>
  21. </tr>
  22. <tr>
  23. <!-- <td></td> -->
  24. <td>8:05-8:40</td>
  25. <td>第一节</td>
  26. <td>班会</td>
  27. <td>语文</td>
  28. <td>语文</td>
  29. <td>数学</td>
  30. <td>数学</td>
  31. </tr>
  32. <tr>
  33. <!-- <td></td> -->
  34. <td>8:50-9:25</td>
  35. <td>第二节</td>
  36. <td>语文</td>
  37. <td>语文</td>
  38. <td>语文</td>
  39. <td>数学</td>
  40. <td>数学</td>
  41. </tr>
  42. <tr>
  43. <!-- <td></td> -->
  44. <td>9:25-9:55</td>
  45. <td colspan="6">课间操</td>
  46. </tr>
  47. <tr>
  48. <!-- <td></td> -->
  49. <td>9:55-10:30</td>
  50. <td>第三节</td>
  51. <td>英语</td>
  52. <td>美术</td>
  53. <td>数学</td>
  54. <td>体育</td>
  55. <td>英语</td>
  56. </tr>
  57. <tr>
  58. <!-- <td></td> -->
  59. <td>10:30-10:45</td>
  60. <td colspan="5">眼保健操</td>
  61. </tr>
  62. <tr>
  63. <!-- <td></td> -->
  64. <td>10:45-11:20</td>
  65. <td>第四节</td>
  66. <td>数学</td>
  67. <td>语文</td>
  68. <td>英语</td>
  69. <td>数学</td>
  70. <td>品德</td>
  71. </tr>
  72. <tr>
  73. <!-- <td></td> -->
  74. <td>11:30-12:05</td>
  75. <td>第五节</td>
  76. <td>数学</td>
  77. <td>英语</td>
  78. <td>英语</td>
  79. <td>文体</td>
  80. <td>书法</td>
  81. </tr>
  82. <tr>
  83. <td style="background-color: Beige;">中午</td>
  84. <td>12:05-14:45</td>
  85. <td colspan="6">午休</td>
  86. </tr>
  87. <tr>
  88. <td rowspan="3" style="background-color: Beige;">下午</td>
  89. <!-- <td colspan="2">时间</td> -->
  90. </tr>
  91. <tr>
  92. <!-- <td></td> -->
  93. <td>14:45-15:20</td>
  94. <td>第六节</td>
  95. <td>信息技术</td>
  96. <td>体育</td>
  97. <td>英语</td>
  98. <td>音乐</td>
  99. <td>体育</td>
  100. </tr>
  101. <tr>
  102. <!-- <td></td> -->
  103. <td>13:35-16:10</td>
  104. <td>第7节</td>
  105. <td>政治</td>
  106. <td>劳动</td>
  107. <td>体育</td>
  108. <td>音乐</td>
  109. <td>音乐</td>
  110. </tr>
  111. </tbody>
  112. </table>

具体表格渲染如下图:
课程表

Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:好
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post