Blogger Information
Blog 46
fans 2
comment 0
visits 19482
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
仿php中文网
P粉314265155
Original
449 people have browsed it

效果演示

html 代码

  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. <link rel="stylesheet" href="../0714/static/css/zuoyi1.css">
  9. </head>
  10. <body>
  11. <header>
  12. <div class="header"><p>我是头部导航</p></div>
  13. </header>
  14. <main class="main">
  15. <!-- 中间导航 -->
  16. <div class="navs">
  17. <div class="left">
  18. <a href=""><h6>开发</h6></a>
  19. <a href=""><h6>测试</h6></a>
  20. <a href=""><h6>上线</h6></a>
  21. <a href=""><h6>试运行</h6></a>
  22. <a href=""><h6>验收</h6></a>
  23. </div>
  24. <!-- 中间 -->
  25. <div class="content">
  26. <a href=""><img src="../0714/0714/static/images/course4.jpg" alt=""></a>
  27. <a href=""></a>
  28. <a href=""></a>
  29. <a href=""></a>
  30. </div>
  31. <!-- 右侧 -->
  32. <div class="right">
  33. <div class="top-right">
  34. <a href=""><img src="../0714/0714/static/images/user-pic.jpeg" alt=""></a>
  35. <a href=""><P>P粉314265155</P></a>
  36. <a href=""><h6 style="color:red ;">P豆:30.00</h6></a>
  37. <button>我的学习</button>
  38. </div>
  39. <div class="footer-right">
  40. <a href=""><span>问答社区:</span></a>
  41. <a href=""><span>答疑</span></a>
  42. <ul>
  43. <li><span>头条: <a href="">我是头条内容</a></span>
  44. </li>
  45. <li><span>福利: <a href="">我是福利内容</a></span>
  46. </li>
  47. <li><span>领班 :<a href="">我是领班内容</a></span>
  48. </li>
  49. <li><span>招募:<a href="">我是招募内容</a></span>
  50. </li>
  51. <li><span>公告:<a href="">我是公告内容</a></span>
  52. </li>
  53. </ul>
  54. </div>
  55. </div>
  56. </div>
  57. </main>
  58. </body>
  59. </html>

css 代码

  1. @import url(reset.css);
  2. header{
  3. width: 100vw;
  4. height: 60px;
  5. background-color: aqua;
  6. text-align: center;
  7. position: fixed;
  8. top: 0;
  9. right: 0;
  10. left: 0;
  11. z-index: 100;
  12. }
  13. main .navs{
  14. display: flex;
  15. grid-template-columns: 180px 300px 120px;
  16. grid-template-rows: 200px 80px;
  17. background-color: blueviolet;
  18. border: 2px solid red;
  19. position: relative;
  20. top: 80px;
  21. z-index: 1;
  22. width: auto;
  23. }
  24. main .navs .left
  25. {
  26. display: grid;
  27. grid-auto-flow: row;
  28. /* grid-template-rows: 20px 20px 20px 20px 20px; */
  29. grid-template-rows: repeat(5,40px);
  30. gap: 10px;
  31. place-content:center;
  32. background-color: white;
  33. font-size: larger;
  34. font-weight: 100;
  35. place-content: center;
  36. margin-left: 250px;
  37. padding-top: 20px;
  38. border-radius: 10px;
  39. border: 2px solid red;
  40. min-width: 120px;
  41. }
  42. main .navs .left a.hover {
  43. font-weight: bold;
  44. color: red;
  45. color: red;
  46. /* 小手 */
  47. cursor: pointer;
  48. }
  49. main .navs .content img {
  50. min-height: 200px;
  51. height: 400px;
  52. width: 500px;
  53. height: 400px;
  54. border-radius: 10px;
  55. }
  56. main .navs .right {
  57. display: grid;
  58. grid-template-columns: 180px;
  59. grid-template-rows: 100px 300px;
  60. border: 2px solid red;
  61. min-width:140px; ;
  62. background-color: white;
  63. border-radius: 10px;
  64. }
  65. main .navs .right .top-right {
  66. display: grid;
  67. grid-template-columns: 60px 110px;
  68. grid-template-rows: 40px 20px 30px;
  69. border-bottom: 2px solid black;
  70. }
  71. main .navs .right a img {
  72. width: 50px;
  73. border-radius: 30px;
  74. border: 2px solid red;
  75. margin-top: 10px;
  76. margin-left: 10px;
  77. }
  78. main .navs .right a p {
  79. width: 100px;
  80. border: 2px solid red;
  81. margin-top: 10px;
  82. margin-top: 10px;
  83. margin-left: 10px;
  84. font-size: 14px;
  85. width: auto;
  86. }
  87. main .navs .right .box-right {
  88. grid-area:2 / 1 / span 3 / span 3;
  89. }
  90. main .navs .right a h6 {
  91. width: 100px;
  92. border: 2px solid red;
  93. margin-top: 0;
  94. margin-left: 70px;
  95. }
  96. main .navs .right button {
  97. margin-top: 25px;
  98. width: 140px;
  99. height: 30px;
  100. margin-left: -40px;
  101. border-radius: 30px;
  102. background-color: red;
  103. font-size: larger;
  104. box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  105. }
  106. main .navs .right button:hover{
  107. font-weight: bold;
  108. }
  109. main .navs .right .footer-right {
  110. display: grid;
  111. grid-template-columns: 80px 100px;
  112. grid-template-rows: 80px 200px;
  113. /* background-color: aquamarine; */
  114. /* place-content:center; */
  115. /* grid-template-rows: 141px 1fr; */
  116. margin-left: 10px;
  117. margin-top: 10px;
  118. /* place-content: center ; */
  119. }
  120. main .navs .right .footer-right > a:nth-of-type(1)
  121. {
  122. font-size: 18px;
  123. font-weight: 520;
  124. padding-top: 3px;
  125. }
  126. main .navs .right .footer-right > a:nth-of-type(2)
  127. {
  128. width: 60px;
  129. height: 30px;
  130. background-color: blue;
  131. /* place-self: center; */
  132. border-radius: 10px;
  133. padding-left: 12px;
  134. padding-top: 3px;
  135. margin-left: 15px;
  136. }
  137. main .navs .right .footer-right ul {
  138. display: grid;
  139. grid-template-columns: 200px ;
  140. grid-template-rows: repeat(5 , 30px);
  141. /* background-color: aquamarine; */
  142. font-size: larger;
  143. margin-top: -40px;
  144. /* gap: 40px; */
  145. /* place-content: space-around;
  146. place-items: center start; */
  147. /* place-items:end; */
  148. grid-auto-flow:column;
  149. gap: 20px;
  150. }
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!