Blogger Information
Blog 19
fans 0
comment 1
visits 7375
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
1024作业
移动用户-4050479
Original
328 people have browsed it
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>Document</title>
  8. <style>
  9. table,tr,th,td{
  10. border: 0.01rem solid black;
  11. border-collapse: collapse;
  12. }
  13. table {
  14. width: 80vw;
  15. height: auto;
  16. text-align: center;
  17. }
  18. table caption {
  19. font-size:2rem;
  20. font-weight: bold;
  21. }
  22. table thead {
  23. background-color: aqua;
  24. }
  25. table tbody:nth-of-type(1) tr:nth-of-type(1) td:nth-of-type(1){
  26. background-color: aquamarine;
  27. }
  28. table tbody:nth-of-type(3) tr:nth-of-type(1) td:nth-of-type(1){
  29. background-color: aquamarine;
  30. }
  31. table tr:nth-of-type(even){
  32. background-color: gray;
  33. }
  34. /* table tfoot{
  35. background-color: gray;
  36. } */
  37. </style>
  38. </head>
  39. <body>
  40. <body>
  41. <table>
  42. <caption>
  43. 课程表
  44. </caption>
  45. <thead>
  46. <tr>
  47. <th>时间</th>
  48. <th>周一</th>
  49. <th>周二</th>
  50. <th>周三</th>
  51. <th>周四</th>
  52. <th>周五</th>
  53. </tr>
  54. </thead>
  55. <!-- 上午 -->
  56. <!-- 第一个tbody -->
  57. <tbody>
  58. <tr>
  59. <td rowspan="4" class="period">上午</td>
  60. <td>数学</td>
  61. <td>数学</td>
  62. <td>数学</td>
  63. <td>数学</td>
  64. <td>数学</td>
  65. </tr>
  66. <tr>
  67. <td>数学</td>
  68. <td>数学</td>
  69. <td>数学</td>
  70. <td>数学</td>
  71. <td>数学</td>
  72. </tr>
  73. <tr>
  74. <td>语文</td>
  75. <td>语文</td>
  76. <td>语文</td>
  77. <td>语文</td>
  78. <td>语文</td>
  79. </tr>
  80. <tr>
  81. <td>英语</td>
  82. <td>英语</td>
  83. <td>英语</td>
  84. <td>英语</td>
  85. <td>英语</td>
  86. </tr>
  87. </tbody>
  88. <!-- 中午 -->
  89. <!-- 第二个tbody -->
  90. <tbody>
  91. <tr>
  92. <td colspan="6">中午休息</td>
  93. </tr>
  94. </tbody>
  95. <!-- 下午 -->
  96. <!-- 第3个tbody -->
  97. <tbody>
  98. <tr>
  99. <td rowspan="3" class="period">下午</td>
  100. <td>音乐</td>
  101. <td>音乐</td>
  102. <td>体育</td>
  103. <td>体育</td>
  104. <td>体育</td>
  105. </tr>
  106. <tr>
  107. <td>美术</td>
  108. <td>美术</td>
  109. <td>美术</td>
  110. <td>美术</td>
  111. <td>美术</td>
  112. </tr>
  113. <tr>
  114. <td>科学</td>
  115. <td>科学</td>
  116. <td>科学</td>
  117. <td>科学</td>
  118. <td>科学</td>
  119. </tr>
  120. </tbody>
  121. <!-- 表尾 -->
  122. <tfoot>
  123. <tr>
  124. <td>备注:</td>
  125. <td colspan="5">每天下午15:30-17:30在校写作业</td>
  126. </tr>
  127. </tfoot>
  128. </table>
  129. </body>
  130. </body>
  131. </html>

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>Document</title>
  8. <style>
  9. *{
  10. margin: 0;
  11. padding: 0;
  12. box-sizing: border-box;
  13. }
  14. .css {
  15. line-height: 1.5rem;
  16. margin-top: 1.25rem;
  17. width: 18.75rem ;
  18. height: auto ;
  19. border: .3125rem solid royalblue;
  20. border-radius: 2rem;
  21. padding: .625rem;
  22. text-align: left;
  23. box-shadow: 0rem 0rem 0.625rem black;
  24. }
  25. .css p {
  26. color: black;
  27. font-size: 1rem;
  28. }
  29. .css:nth-of-type(1) p:nth-last-of-type(1) {
  30. color: red;
  31. }
  32. .vw{
  33. width: 50vw;
  34. height: 5vw;
  35. border: 3px solid black;
  36. }
  37. </style>
  38. </head>
  39. <body>
  40. <div class="vw">
  41. </div>
  42. <div align="center">
  43. <div class="css">
  44. <p>绝对单位: px</p>
  45. <p>相对单位: em , rem , vw , vh , %</p>
  46. <p>font-size: 可以被继承</p>
  47. <p>自适应页面不要规定绝对单位</p>
  48. </div>
  49. <div class="css">
  50. <p>em 是继承字号 受自身和父元素等影响</p>
  51. <p>大多数情况 :</p>
  52. <p>PC => em</p>
  53. <p>移动端 => rem</p>
  54. <p></p>
  55. <p></p>
  56. </div>
  57. <div class="css">
  58. <p>视口 : 浏览器可见的网页内容</p>
  59. <p>类似于百分比</p>
  60. <p>与百分比区别是:</p>
  61. <p>视口是以浏览器大小为参照</p>
  62. <p>百分比以父元素为参照</p>
  63. <p>布局宽度受限制,高度无限制</p>
  64. <p></p>
  65. <p></p>
  66. </div>
  67. </div>
  68. </body>
  69. </html>

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