Blogger Information
Blog 29
fans 0
comment 0
visits 19533
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
grid网格布局最新课程部分
千里马遇伯乐
Original
728 people have browsed it

最新课程单元

HTML部分

  1. <body>
  2. <h2>最新课程</h2>
  3. <div class="conteiner">
  4. <div><img src="img/623d6ce036b81626.jpg"/>
  5. <i>初级</i> JavaScript基础语法【dom|bom|es6新语法|jQuery
  6. <p ><img class="sc" src="img/收藏(1).png"/>收藏</p></div>
  7. <div><img src="img/62398b673ecc4667.jpg" >
  8. <i>初级</i> 前端最全HTTP基础原理及应用<br>
  9. <p ><img class="sc"src="img/收藏(1).png"/>收藏</p>
  10. </div>
  11. <div><img src="img/62398b5dadc79937.jpg" >
  12. <i>初级</i>HTTP协议<br><br>
  13. <p ><img class="sc" src="img/收藏(1).png"/>收藏</p>
  14. </div>
  15. <div><img src="img/62381b3e817d4409.jpg" >
  16. <i>初级</i>接口开发规范【服务器端标准的接口Restful API开发全过程】
  17. <p ><img class="sc" src="img/收藏(1).png"/>收藏</p>
  18. </div>
  19. <div ><img src="img/623057031def7707.jpg" >
  20. <i>初级</i>MySQL查询优化方案【大厂架构师亲授】
  21. <p ><img class="sc" src="img/收藏(1).png"/>收藏</p>
  22. </div>
  23. <div><img src="img/622efba5b8f59620.jpg" >
  24. <i>初级</i>Web前端Promise教程从入门到精通
  25. <p ><img class="sc" src="img/收藏(1).png"/>收藏</p>
  26. </div>
  27. <div><img src="img/622ee24c8180c270.jpg" >
  28. <i>初级</i>Bootstrap框架讲解<br><br>
  29. <p ><img class="sc" src="img/收藏(1).png"/>收藏</p>
  30. </div>
  31. <div><img src="img/6226fe0150292919.jpg" >
  32. <i>初级</i>【小白入门 通俗易懂】一周学会Linux
  33. <p ><img class="sc" src="img/收藏(1).png"/>收藏</p>
  34. </div>
  35. <div><img src="img/6225aaf1beb5a942.jpg" >
  36. <i>初级</i>仿美团APP实战开发【前端程序员必备的JavaScript项目实战】
  37. <p ><img class="sc" src="img/收藏(1).png"/>收藏</p>
  38. </div>
  39. <div><img src="img/6226d78b754aa110.png" >
  40. <i>初级</i>公益直播:PHP入门到实战--实现邮箱验证(队列发送邮件)
  41. <p ><img class="sc" src="img/收藏(1).png"/>收藏</p>
  42. </div>
  43. </div>
  44. </body>

css部分

` *{
margin: 0px;
padding: 0px;
box-sizing: border-box;

  1. }
  2. body{
  3. font-size: 14px;
  4. font-family: "微软雅黑";
  5. background-color: #e0e2e3;
  6. }
  7. h2{
  8. margin-left: 176px;
  9. margin-top: 150px;
  10. margin-bottom: -50px;
  11. }
  12. .conteiner{
  13. /* 网格容器 */
  14. display: grid;
  15. /* 2行5列 */
  16. grid-template-columns:repeat(5,14.375rem);
  17. grid-template-rows: repeat(2,14.9375rem);
  18. margin-left: 170px;
  19. margin-top: 100px;
  20. /* 网格行列边距 */
  21. grid-row-gap: 20px;
  22. grid-column-gap: 28px;
  23. }
  24. .conteiner .sc{
  25. /* 收藏图片宽高 */
  26. width: 15px;
  27. height:15px;
  28. margin-left: 160px;
  29. margin-right: 10px;
  30. margin-top: 30px;
  31. color:#bababa
  32. }
  33. .conteiner p{
  34. color: #93999f;
  35. }
  36. .conteiner div{
  37. /* 网格内背景颜色 */
  38. background-color:#ffffff;
  39. /* 网格圆角 */
  40. border-radius: 10px;
  41. }
  42. .conteiner img{
  43. width:14.375rem;
  44. height:8.4385rem;
  45. /* 网格内图片圆角 */
  46. border-radius: 10px 10px 0px 0px;
  47. }
  48. .conteiner i{
  49. display: block;
  50. float: left;
  51. width: 28px;
  52. height: 16px;
  53. background: #93999f;
  54. line-height: 16px;
  55. overflow: hidden;
  56. text-align: center;
  57. font-style: normal;
  58. font-size: 11px;
  59. color: #ffffff;
  60. margin-right: 10px;
  61. margin-left: 20px;
  62. margin-top: 3px;
  63. }

实例效果图

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