Blogger Information
Blog 47
fans 1
comment 0
visits 40474
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
图文列表与课程表
新手1314
Original
581 people have browsed it

1.图文列表

代码:

  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>图文列表</title>
  8. <style>
  9. .new {
  10. display: flex;
  11. list-style: none;
  12. text-align: center;
  13. }
  14. </style>
  15. </head>
  16. <body>
  17. <ul class="new">
  18. <li class="news">
  19. <a href="https://www.php.cn/"><img src="https://img01.sogoucdn.com/app/a/100520115/ae406a57b3412d75c3b510f6ac6a62a0" alt="" style="width: 350px;height: 200px;"><br>php中文网</a>
  20. </li>&nbsp;&nbsp;&nbsp;&nbsp;
  21. <li class="news">
  22. <a href="https://www.php.cn/course/1382.html"><img src="https://img.php.cn/upload/course/000/000/041/6209c897986f5556.jpg" alt="" style="width: 400px;height: 200px;"><br>前端开发课程</a>
  23. </li>&nbsp;&nbsp;&nbsp;&nbsp;
  24. <li class="news">
  25. <a href="https://www.php.cn/course/1383.html"><img src="https://img.php.cn/upload/course/000/000/041/6209c922e38a3299.jpg" alt="" style="width: 400px;height: 200px;"><br>后端开发课程(暂未开启)</a>
  26. </li>&nbsp;&nbsp;&nbsp;&nbsp;
  27. </ul>
  28. </body>
  29. </html>

实现:

图文列表

2.课程表

代码:

  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>课程表</title>
  8. <style type="text/css">
  9. .ju {
  10. text-align: center;
  11. }
  12. .shang {
  13. background-color: aqua;
  14. }
  15. table {
  16. width: 900px;
  17. border-top: 1px solid #999;
  18. border-left: 1px solid #999;
  19. border-spacing: 0;
  20. margin: auto;
  21. }
  22. table td {
  23. padding: 10px 30px;
  24. border-bottom: 1px solid #999;
  25. border-right: 1px solid #999;
  26. }
  27. .color {
  28. background-color: bisque;
  29. }
  30. </style>
  31. </head>
  32. <body>
  33. <div class="ju">
  34. <table>
  35. <caption>
  36. <h3>19期PHP课程表</h3>
  37. </caption>
  38. <thead>
  39. <tr class="color">
  40. <td>时间</td>
  41. <td>周一</td>
  42. <td>周二</td>
  43. <td>周三</td>
  44. <td>周四</td>
  45. <td>周五</td>
  46. </tr>
  47. </thead>
  48. <tbody>
  49. <tr>
  50. <td rowspan="4" class="shang">上午</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>摸鱼</td>
  60. <td>摸鱼</td>
  61. <td>摸鱼</td>
  62. <td>摸鱼</td>
  63. </tr>
  64. <tr>
  65. <td>摸鱼</td>
  66. <td>摸鱼</td>
  67. <td>摸鱼</td>
  68. <td>摸鱼</td>
  69. <td>摸鱼</td>
  70. </tr>
  71. <tr>
  72. <td>摸鱼</td>
  73. <td>摸鱼</td>
  74. <td>摸鱼</td>
  75. <td>摸鱼</td>
  76. <td>摸鱼</td>
  77. </tr>
  78. <tr>
  79. <td colspan="6" class="color">中午休息</td>
  80. </tr>
  81. <tr>
  82. <td rowspan="3" class="shang">下午</td>
  83. <td>摸鱼</td>
  84. <td>摸鱼</td>
  85. <td>摸鱼</td>
  86. <td>摸鱼</td>
  87. <td>摸鱼</td>
  88. </tr>
  89. <tr>
  90. <td>摸鱼</td>
  91. <td>摸鱼</td>
  92. <td>摸鱼</td>
  93. <td>摸鱼</td>
  94. <td>摸鱼</td>
  95. </tr>
  96. <tr>
  97. <td>摸鱼</td>
  98. <td>摸鱼</td>
  99. <td>摸鱼</td>
  100. <td>摸鱼</td>
  101. <td>摸鱼</td>
  102. </tr>
  103. <tr>
  104. <td colspan="6" class="color">晚饭时间</td>
  105. </tr>
  106. <tr>
  107. <td rowspan="2" class="shang">晚上</td>
  108. <td>前端基础教程</td>
  109. <td>前端基础教程</td>
  110. <td>前端基础教程</td>
  111. <td>前端基础教程</td>
  112. <td>前端基础教程</td>
  113. </tr>
  114. <tr>
  115. <td>前端基础教程</td>
  116. <td>前端基础教程</td>
  117. <td>前端基础教程</td>
  118. <td>前端基础教程</td>
  119. <td>前端基础教程</td>
  120. </tr>
  121. </tbody>
  122. <tfoot>
  123. <tr>
  124. <td colspan="6" class="color">睡觉时间</td>
  125. </tr>
  126. </tfoot>
  127. </table>
  128. </div>
  129. </body>
  130. </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