Blogger Information
Blog 9
fans 0
comment 0
visits 9123
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
html 制作课程表 行与列的合并
Jerry
Original
1175 people have browsed it

课表截图

实验小学课程表 "课表截图"

html源代码

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>实验小学课程表</title>
  7. <link rel="stylesheet" href="style/table.css">
  8. </head>
  9. <body>
  10. <table class="lesson">
  11. <caption>
  12. 实验小学课程表
  13. </caption>
  14. <thead>
  15. <tr>
  16. <th colspan="2"></th>
  17. <th>周一</th>
  18. <th>周二</th>
  19. <th>周三</th>
  20. <th>周四</th>
  21. <th>周五</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. <tr>
  26. <td rowspan="4">上午</td>
  27. <td>1</td>
  28. <td>英语</td>
  29. <td>数学</td>
  30. <td>语文</td>
  31. <td>语文</td>
  32. <td>数学</td>
  33. </tr>
  34. <tr>
  35. <td>2</td>
  36. <td>英语</td>
  37. <td>数学</td>
  38. <td>语文</td>
  39. <td>语文</td>
  40. <td>数学</td>
  41. </tr>
  42. <tr>
  43. <td>3</td>
  44. <td>英语</td>
  45. <td>数学</td>
  46. <td>语文</td>
  47. <td>语文</td>
  48. <td>数学</td>
  49. </tr>
  50. <tr>
  51. <td>4</td>
  52. <td>英语</td>
  53. <td>数学</td>
  54. <td>语文</td>
  55. <td>语文</td>
  56. <td>数学</td>
  57. </tr>
  58. <tr class="rest">
  59. <td colspan="7">午间休息</td>
  60. </tr>
  61. <tr>
  62. <td rowspan="3">下午</td>
  63. <td>5</td>
  64. <td>英语</td>
  65. <td>数学</td>
  66. <td>语文</td>
  67. <td>语文</td>
  68. <td>数学</td>
  69. </tr>
  70. <tr>
  71. <td>6</td>
  72. <td>英语</td>
  73. <td>数学</td>
  74. <td>语文</td>
  75. <td>语文</td>
  76. <td>数学</td>
  77. </tr>
  78. <tr>
  79. <td>7</td>
  80. <td>课外活动:</td>
  81. <td colspan="4">各班自行安排</td>
  82. </tr>
  83. </tbody>
  84. </body>
  85. </html>

样式表源代码

  1. /* 商品信息表 */
  2. .product {
  3. border-collapse: collapse;
  4. width: 30em;
  5. margin: auto;
  6. text-align: center;
  7. }
  8. .product caption {
  9. font-size: 1.2rem;
  10. margin-bottom: 0.5em;
  11. }
  12. .product thead tr,
  13. .product tr:hover {
  14. background-color: lightcyan;
  15. cursor: pointer;
  16. }
  17. .product td,
  18. .product th {
  19. border: 1px solid #000;
  20. padding: 5px;
  21. }
  22. .page {
  23. text-align: center;
  24. }
  25. .page a {
  26. text-decoration: none;
  27. color: #666;
  28. padding: 2px 5px;
  29. border: 1px solid #000;
  30. }
  31. .page a.active,
  32. .page a:hover {
  33. background-color: lightcyan;
  34. }
  35. /* --------------------------------------- */
  36. /* 课程表: 行与列的合并 */
  37. .lesson {
  38. border-collapse: collapse;
  39. width: 40em;
  40. text-align: center;
  41. margin: auto;
  42. }
  43. .lesson caption {
  44. font-size: 1.2rem;
  45. margin: 1em;
  46. }
  47. .lesson thead {
  48. background-color: lightcyan;
  49. }
  50. .lesson th,
  51. .lesson td {
  52. border: 1px solid;
  53. padding: 0.5em;
  54. }
  55. .lesson .rest {
  56. background-color: #efefef;
  57. }
  58. .lesson td[rowspan="4"],
  59. .lesson td[rowspan="3"] {
  60. background-color: rgb(186, 245, 213);
  61. }
Correcting teacher:天蓬老师天蓬老师

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