Blogger Information
Blog 19
fans 0
comment 0
visits 10268
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
仿php中文网部分
搬砖来学php
Original
382 people have browsed it

  1. <div class="right">
  2. <div class="top">
  3. <a href="">
  4. <img src="static/images/user-pic.jpeg" width="100" alt="" /></a>
  5. <a href="">朱老师</a>
  6. <a href="">p豆 99999</a>
  7. </div>
  8. <div class="xuexi">
  9. <a href="">我的学习</a>
  10. </div>
  11. <br />
  12. <div style="border-bottom: 1px solid #eeeeee; margin-top: 10px"></div>
  13. <div class="wenda">
  14. <a href="">问答社区</a>
  15. <a href="" class="dayi"> 答疑</a>
  16. </div>
  17. <div class="kuaijie">
  18. <div class="toutiao">
  19. <a href="">头条</a>
  20. <a href="" class="yanse">php学习之路</a>
  21. </div>
  22. <div class="fuli">
  23. <a href="">福利</a>
  24. <a href="" class="yanse"> 限制折扣</a>
  25. </div>
  26. <div class="xinban">
  27. <a href="">新班</a>
  28. <a href="" class="yanse"> 20期php线上班</a>
  29. </div>
  30. <div class="zhaomu">
  31. <a href="">招募</a>
  32. <a href="" class="yanse">课程计划合作</a>
  33. </div>
  34. <div class="gonggao">
  35. <a href="">公告</a>
  36. <a href="" class="yanse"> APP上线啦</a>
  37. </div>
  38. </div>
  39. </div>
  40. <div class="bottom-left">
  41. <div class="desc">
  42. <div class="title">学习路径</div>
  43. <span>全部7个&gt;</span>
  44. </div>
  45. <ul class="detail">
  46. <li onclick="">
  47. <img src="static/images/dgjj.png" alt="" />
  48. <a href="">独孤九贱</a>
  49. <span>9门课程</span>
  50. </li>
  51. <li onclick="">
  52. <img src="static/images/ynxj.png" alt="" />
  53. <a href="">独孤九贱</a>
  54. <span>9门课程</span>
  55. </li>
  56. <li onclick="">
  57. <img src="static/images/tlbb.png" alt="" />
  58. <a href="">独孤九贱</a>
  59. <span>9门课程</span>
  60. </li>
  61. <li onclick="">
  62. <img src="static/images/phpkjkf.png" alt="" />
  63. <a href="">独孤九贱</a>
  64. <span>9门课程</span>
  65. </li>
  66. <li onclick="">
  67. <img src="static/images/phpksrm.png" alt="" />
  68. <a href="">独孤九贱</a>
  69. <span>9门课程</span>
  70. </li>
  71. </ul>
  72. </div>
  73. <div class="bottom-right">
  74. <div class="weixin">
  75. <a href="" class="iconfont icon-weixin"></a>
  76. </div>
  77. <span class="wx">微信公众号</span>
  78. <div class="qq">
  79. <a href="" class="iconfont icon-QQ"></a>
  80. </div>
  81. <span class="guanfang">官方QQ群</span>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </main>
  87. </body>
  88. </html>

css代码

  1. @import url(reset.css);
  2. body {
  3. background-color: #f3f5f7;
  4. }
  5. main .navs .right .top {
  6. display: grid;
  7. grid-template-columns: repeat(2, 1fr);
  8. grid-template-rows: repeat(2, 1fr);
  9. grid-row: 1 / span 2;
  10. }
  11. main .navs .right .top a:nth-of-type(1) {
  12. grid-row: 1/ 3;
  13. padding: 10px 15px;
  14. }
  15. main .navs .right .top a:nth-of-type(2) {
  16. place-self: center start;
  17. }
  18. main .navs .right .top img {
  19. border-radius: 100px;
  20. width: 50px;
  21. }
  22. main .navs .right .top a:nth-of-type(3) {
  23. color: #999999;
  24. }
  25. main .navs .right .xuexi {
  26. display: flex;
  27. color: #fff;
  28. background: red;
  29. place-content: center;
  30. width: 150px;
  31. padding: 10px;
  32. border-radius: 50px/50px;
  33. margin: auto;
  34. }
  35. main .navs .right .xuexi > a {
  36. color: #fff;
  37. }
  38. main .navs .right .wenda {
  39. display: flex;
  40. width: 150px;
  41. padding: 10px 15px;
  42. }
  43. main .navs .right .wenda > a.dayi {
  44. background-color: #ff583d;
  45. color: #fff;
  46. margin: auto;
  47. }
  48. main .navs .right .kuaijie {
  49. display: grid;
  50. padding: 10px;
  51. gap: 22px;
  52. }
  53. main .navs .right .kuaijie .yanse {
  54. color: #999999;
  55. }
  56. main .navs .bottom-right {
  57. display: grid;
  58. grid-template-columns: 1fr 1fr;
  59. place-items: center;
  60. }
  61. main .navs .bottom-right .wx {
  62. grid-area: 2;
  63. }
  64. main .navs .bottom-right .weixin :nth-of-type(1) {
  65. color: green;
  66. }
  67. main .navs .bottom-right .qq :nth-of-type(1) {
  68. color: lightskyblue;
  69. }
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