Blogger Information
Blog 33
fans 0
comment 0
visits 17119
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
php中文网下侧区域的实例演示
lucaslwk
Original
327 people have browsed it

php中文网下侧区域的实例演示

实现效果

实现效果

html 部分

  1. <div class="box">
  2. <div class="title">
  3. <h2>最新课程</h2>
  4. <a href="">更多&gt;</a>
  5. </div>
  6. <ul>
  7. <li>
  8. <span>
  9. <a href=""
  10. ><img
  11. src="https://img.php.cn/upload/course/000/000/068/623d6ce036b81626.jpg"
  12. alt=""
  13. /></a>
  14. </span>
  15. <dl>
  16. <dt>
  17. <i>初级</i
  18. ><a href=""
  19. >JavaScript基础语法【dom|bom|es6新语法|jQuery|数据可视化echarts】</a
  20. >
  21. </dt>
  22. <dd>
  23. <p>679次学习</p>
  24. <div class="collect">
  25. <div class="iconfont icon-shoucang"></div>
  26. <a href="">收藏</a>
  27. </div>
  28. </dd>
  29. </dl>
  30. </li>
  31. </ul>
  32. </div>

css 部分

  1. body {
  2. padding: 20px;
  3. }
  4. .box {
  5. width: 1200px;
  6. margin: auto;
  7. }
  8. .box .title {
  9. display: flex;
  10. place-items: center;
  11. place-content: space-between;
  12. }
  13. .box .title h2 {
  14. font-size: larger;
  15. }
  16. .box .title a {
  17. font-size: small;
  18. width: 78px;
  19. height: 32px;
  20. text-align: center;
  21. line-height: 32px;
  22. background-color: bisque;
  23. border-radius: 100px;
  24. color: gray;
  25. }
  26. .box .title a:hover {
  27. font-size: small;
  28. width: 78px;
  29. height: 32px;
  30. text-align: center;
  31. line-height: 32px;
  32. background-color: red;
  33. border-radius: 100px;
  34. color: white;
  35. }
  36. .box a img {
  37. width: 224px;
  38. height: 130px;
  39. border-radius: 6px;
  40. }
  41. .box ul {
  42. display: grid;
  43. width: 1200px;
  44. grid-template-columns: repeat(5, 224px);
  45. grid-template-rows: repeat(2, 265px);
  46. font-size: small;
  47. place-content: space-between;
  48. }
  49. .box ul li {
  50. display: grid;
  51. border-radius: 6px;
  52. background-color: white;
  53. margin-top: 30px;
  54. }
  55. .box ul dl {
  56. height: 50px;
  57. margin: 0 20px;
  58. place-items: center;
  59. }
  60. .box ul dl i {
  61. background-color: gray;
  62. color: white;
  63. font-style: normal;
  64. margin-right: 10px;
  65. }
  66. .box ul dl dt {
  67. height: 35px;
  68. overflow: hidden;
  69. }
  70. .box ul dl dd {
  71. display: flex;
  72. margin-top: 10px;
  73. font-size: smaller;
  74. color: gray;
  75. place-content: space-between;
  76. }
  77. .box ul dl dd a {
  78. color: gray;
  79. }
  80. .box ul dl dd .collect {
  81. display: flex;
  82. }
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