Blogger Information
Blog 4
fans 0
comment 0
visits 2922
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
2019年12月20日的作业
飘飘
Original
688 people have browsed it

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>php中文网</title>
  6. <link rel="stylesheet" href="static/font/iconfont.css">
  7. <style>
  8. /*清除自带的间距*/
  9. *{
  10. margin: 0 ;
  11. padding: 0;
  12. }
  13. /*清除a标签下划线*/
  14. a{
  15. text-decoration: none;
  16. color: #333333;
  17. }
  18. /*清除浮动*/
  19. clear{
  20. clear:both;
  21. }
  22. .header{
  23. width: 1200px;
  24. height: 150px;
  25. margin: 0 auto;
  26. }
  27. .logo{
  28. float: left;
  29. width: 160px;
  30. height: 80px;
  31. margin-right: 295px;
  32. margin-top: 45px;
  33. position: relative;
  34. background:url("./static/images/logo.png");
  35. }
  36. .sousuo{
  37. float: left;
  38. width: 200px;
  39. height: 50px;
  40. margin-left: 100px;
  41. margin-top: 65px;
  42. position: relative;
  43. }
  44. .sousuo input{
  45. width: 300px;
  46. height: 40px;
  47. margin-top: 5px;
  48. border: solid 1px #404040;
  49. border-radius:10px;
  50. position: absolute;
  51. }
  52. .sousuo label{
  53. position: absolute;
  54. margin-left: 280px;
  55. margin-top: 15px;
  56. }
  57. .denglu{
  58. float: left;
  59. width: 300px;
  60. height: 80px;
  61. margin-left: 145px;
  62. margin-top: 70px;
  63. position: relative;
  64. }
  65. .denglu span{
  66. font-size: 35px;
  67. margin-left: 10px;
  68. }
  69. .content{
  70. width: 1200px;
  71. margin: 0 auto;
  72. }
  73. .content span{
  74. float: left;
  75. font-size: 35px;
  76. color: red;
  77. margin-right: 5px;
  78. }
  79. .nav-daohang1{
  80. float: left;
  81. padding-right: 5px;
  82. box-sizing: border-box;
  83. }
  84. .nav-daohang2{
  85. float: left;
  86. margin-right: 70px;
  87. padding-left: 5px;
  88. border-left: solid 1px #404040;
  89. box-sizing: border-box;
  90. }
  91. .footer{
  92. width: 1200px;
  93. margin: 0 auto;
  94. margin-top: 70px;
  95. }
  96. .tupian-left{
  97. float: left;
  98. width:898px ;
  99. height: 320px;
  100. margin-right: 7px;
  101. background:url("./static/images/2.jpg");
  102. }
  103. .tupian-right{
  104. float: left;
  105. width: 295px;
  106. height: 320px;
  107. background:url("./static/images/banner-right.jpg");
  108. }
  109. </style>
  110. </head>
  111. <body>
  112. <div class="box">
  113. <div class="header">
  114. <div class="logo">
  115. </div>
  116. <div class="sousuo">
  117. <input type="search" name="search" id="search">
  118. <label for="search" class="iconfont icon-jinduchaxun"></label>
  119. </div>
  120. <div class="denglu">
  121. <a href=""><span class="iconfont icon-tianshenpi"></span></a>
  122. <a href=""><span class="iconfont icon-danmu1"></span></a>
  123. <a href=""><span class="iconfont icon-shujukanban"></span></a>
  124. <a href=""><span class="iconfont icon-fangda"></span></a>
  125. <a href=""><span class="iconfont icon-huiyuan2"></span></a>
  126. <a href=""><span class="iconfont icon-dianzan"></span></a>
  127. </div>
  128. </div>
  129. <div class="content">
  130. <ul>
  131. <div class="nav-span">
  132. <span class="iconfont icon-gongdan"></span>
  133. </div>
  134. <div class="nav-daohang1">
  135. <p>
  136. <a href="#">建材</a>
  137. </p>
  138. <p>
  139. <a href="#">建材</a>
  140. </p>
  141. </div>
  142. <div class="nav-daohang2">
  143. <p>
  144. <a href="#">建材</a>
  145. <a href="#">瓷砖</a>
  146. <a href="#">瓦片</a>
  147. <a href="#">水泥</a>
  148. </p>
  149. <p>
  150. <a href="#">钢筋</a>
  151. <a href="#">扳手</a>
  152. <a href="#">螺丝</a>
  153. <a href="#">卡口</a>
  154. </p>
  155. </div>
  156. <div class="nav-span">
  157. <span class="iconfont icon-gongdan"></span>
  158. </div>
  159. <div class="nav-daohang1">
  160. <p>
  161. <a href="#">建材</a>
  162. </p>
  163. <p>
  164. <a href="#">建材</a>
  165. </p>
  166. </div>
  167. <div class="nav-daohang2">
  168. <p>
  169. <a href="#">建材</a>
  170. <a href="#">瓷砖</a>
  171. <a href="#">瓦片</a>
  172. <a href="#">水泥</a>
  173. </p>
  174. <p>
  175. <a href="#">钢筋</a>
  176. <a href="#">扳手</a>
  177. <a href="#">螺丝</a>
  178. <a href="#">卡口</a>
  179. </p>
  180. </div>
  181. <div class="nav-span">
  182. <span class="iconfont icon-gongdan"></span>
  183. </div>
  184. <div class="nav-daohang1">
  185. <p>
  186. <a href="#">建材</a>
  187. </p>
  188. <p>
  189. <a href="#">建材</a>
  190. </p>
  191. </div>
  192. <div class="nav-daohang2">
  193. <p>
  194. <a href="#">建材</a>
  195. <a href="#">瓷砖</a>
  196. <a href="#">瓦片</a>
  197. <a href="#">水泥</a>
  198. </p>
  199. <p>
  200. <a href="#">钢筋</a>
  201. <a href="#">扳手</a>
  202. <a href="#">螺丝</a>
  203. <a href="#">卡口</a>
  204. </p>
  205. </div>
  206. <div class="nav-span">
  207. <span class="iconfont icon-gongdan"></span>
  208. </div>
  209. <div class="nav-daohang1">
  210. <p>
  211. <a href="#">建材</a>
  212. </p>
  213. <p>
  214. <a href="#">建材</a>
  215. </p>
  216. </div>
  217. <div class="nav-daohang2">
  218. <p>
  219. <a href="#">建材</a>
  220. <a href="#">瓷砖</a>
  221. <a href="#">瓦片</a>
  222. <a href="#">水泥</a>
  223. </p>
  224. <p>
  225. <a href="#">钢筋</a>
  226. <a href="#">扳手</a>
  227. <a href="#">螺丝</a>
  228. <a href="#">卡口</a>
  229. </p>
  230. </div>
  231. </ul>
  232. </div>
  233. <div class="footer">
  234. <div class="tupian-left">
  235. </div>
  236. <div class="tupian-right">
  237. </div>
  238. </div>
  239. </div>
  240. </body>
  241. </html>
Correcting teacher:天蓬老师天蓬老师

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