Blogger Information
Blog 21
fans 0
comment 1
visits 10948
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
仿写php中文网片段
手机用户1620888567
Original
305 people have browsed it

#

作业

  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  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. </head>
  9. <body>
  10. <style>
  11. * {
  12. margin: 0;
  13. padding: 0;
  14. box-sizing: border-box;
  15. }
  16. li{
  17. list-style-type:none;
  18. }
  19. .new-courses {
  20. margin: 10px 30px 50px 30px;
  21. }
  22. .list{
  23. display: grid;
  24. grid-template-columns: repeat(5, 1fr);
  25. }
  26. .top {
  27. display: flex;
  28. justify-content: space-between;
  29. height:60px ;
  30. }
  31. .sbg{
  32. background-color: rgb(240, 211, 211);
  33. font-size: small;
  34. font-family: 'SimSun';
  35. }
  36. .desc{
  37. display: grid;
  38. grid-template-columns: repeat(2, 1fr);
  39. place-content: space-between;
  40. font-size:xx-small;
  41. font-family: 'SimSun';
  42. color: rgba(15, 13, 13, 0.779);
  43. height: 50px;
  44. line-height: 50px;
  45. }
  46. </style>
  47. <!-- 整体可看成1行2行 -->
  48. <div class="new-courses">
  49. <div class="top">
  50. <h3>最新课程</h3>
  51. <a href="">更多</a>
  52. </div>
  53. <!-- 2行5列 -->
  54. <div class="coures">
  55. <ul class="list">
  56. <? for($x=1; $x<=10; $x++) { ?>
  57. <li class="item">
  58. <a href=""><img width="190.5" height="100" src="63e202276944f543.jpg" alt="" /></a>
  59. <div class="detail">
  60. <div>
  61. <span class="sbg">初级</span>
  62. <a href="">Apipost入门到精通</a>
  63. </div>
  64. <div class="desc">
  65. <span>1234次学习</span>
  66. <span>收藏</span>
  67. </div>
  68. </div>
  69. </li>
  70. <? }
  71. ?>
  72. </div>
  73. </div>
  74. </body>
  75. </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