Blogger Information
Blog 3
fans 0
comment 0
visits 1735
Related recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
1220作业
玩泥巴白头少年
Original
693 people have browsed it

简单页面

  1. 效果如下

  2. 源码

    1. <!DOCTYPE html>
    2. <html lang="zh-CN">
    3. <head>
    4. <meta charset="UTF-8">
    5. <link rel="stylesheet" href="iconfont.css">
    6. <title>1220homework</title>
    7. <style>
    8. @font-face {
    9. font-family: 'iconfont';
    10. src: url('iconfont.eot');
    11. src: url('iconfont.eot?#iefix') format('embedded-opentype'),
    12. url('iconfont.woff2') format('woff2'),
    13. url('iconfont.woff') format('woff'),
    14. url('iconfont.ttf') format('truetype'),
    15. url('iconfont.svg#iconfont') format('svg');
    16. }
    17. .iconfont {
    18. font-family: "iconfont" !important;
    19. font-size: 35px;
    20. font-style: normal;
    21. -webkit-font-smoothing: antialiased;
    22. -moz-osx-font-smoothing: grayscale;
    23. }
    24. * {
    25. padding: 0;
    26. margin: 0;
    27. }
    28. a {
    29. text-decoration: none;
    30. color: #414141;
    31. }
    32. .main {
    33. width: 1200px;
    34. hight: 1000px;
    35. margin: 0 auto;
    36. /*background-color: lightpink;*/
    37. }
    38. .img1 {
    39. width: 280px;
    40. height: 65px;
    41. float: left;
    42. }
    43. .search {
    44. float: left;
    45. margin-left: 300px;
    46. width: 300px;
    47. height: 65px;
    48. line-height: 65px;
    49. margin-top: 10px;
    50. position: relative;
    51. }
    52. .search span {
    53. display: inline-block;
    54. width: 300px;
    55. height: 45px;
    56. vertical-align: middle;
    57. border: 1px solid;
    58. -webkit-border-radius: 13px;
    59. -moz-border-radius: 13px;
    60. border-radius: 13px;
    61. }
    62. .search p {
    63. position: absolute;
    64. font-size: 25px;
    65. right: 15px;
    66. top: 0px;
    67. }
    68. .img2 {
    69. float: right;
    70. width: 280px;
    71. height: 65px;
    72. line-height: 65px;
    73. margin-top: 10px;
    74. }
    75. .daohang {
    76. height: 75px;
    77. float: left;
    78. overflow: hidden;
    79. margin-top: 15px;
    80. font-size: 15px;
    81. /*background-color: blue;*/
    82. }
    83. .pic {
    84. overflow: hidden;
    85. float: left;
    86. margin-right: 10px;
    87. border-right: 1px rgba(68, 83, 70, 0.67) solid;
    88. }
    89. span.s {
    90. color: red;
    91. width: 45px;
    92. float: left;
    93. margin-right: 5px;
    94. }
    95. .nav1,.nav2,.nav3,.nav4 {
    96. width: 40px;
    97. float: left;
    98. margin-left: 0;
    99. }
    100. .links {
    101. width: 150px;
    102. float: left;
    103. margin-right: 55px;
    104. }
    105. .links4 {
    106. width: 150px;
    107. float: left;
    108. }
    109. </style>
    110. </head>
    111. <body>
    112. <div class="main">
    113. <header>
    114. <div class="img1">
    115. <img src="./pic/logo.png" alt="">
    116. </div>
    117. <div class="search">
    118. <span></span>
    119. <p class="iconfont icon-sousuo2"></p>
    120. </div>
    121. <div class="img2">
    122. <a href="" class="iconfont icon-huiyuan1"></a>
    123. <a href="" class="iconfont icon-danmu1"></a>
    124. <a href="" class="iconfont icon-fabu"></a>
    125. <a href="" class="iconfont icon-fangda"></a>
    126. <a href="" class="iconfont icon-huiyuan2"></a>
    127. <a href="" class="iconfont icon-dianzan"></a>
    128. </div>
    129. </header>
    130. <div class="daohang">
    131. <div class="daohang1">
    132. <!--左侧图标与描述-->
    133. <div class="pic">
    134. <span class="iconfont icon-gongdan s"></span>
    135. <div class="nav1">
    136. <span>资讯</span>
    137. <span>学习</span>
    138. </div>
    139. </div>
    140. <!--右侧导航链接-->
    141. <div class="links">
    142. <a href="">器材</a>
    143. <a href="">大师</a>
    144. <a href="">学院</a>
    145. <a href="">实战</a>
    146. <a href="">大赛</a>
    147. <a href="">裤子</a>
    148. <a href="">影视</a>
    149. <a href="">其它</a>
    150. </div>
    151. <div class="pic">
    152. <span class="iconfont icon-renwujincheng s"></span>
    153. <div class="nav2">
    154. <span>爱好</span>
    155. <span>姐妹</span>
    156. </div>
    157. </div>
    158. <!--右侧导航链接-->
    159. <div class="links">
    160. <a href="">有品</a>
    161. <a href="">图片</a>
    162. <a href="">喝水</a>
    163. <a href="">飞机</a>
    164. <a href="">坦克</a>
    165. <a href="">气球</a>
    166. <a href="">毛线</a>
    167. <a href="">其它</a>
    168. </div>
    169. <div class="pic">
    170. <span class="iconfont icon-gongdan s"></span>
    171. <div class="nav3">
    172. <span>软件</span>
    173. <span>技能</span>
    174. </div>
    175. </div>
    176. <!--右侧导航链接-->
    177. <div class="links">
    178. <a href="">学习</a>
    179. <a href="">爱国</a>
    180. <a href="">敬业</a>
    181. <a href="">友善</a>
    182. <a href="">富强</a>
    183. <a href="">互助</a>
    184. <a href="">仁义</a>
    185. <a href="">其它</a>
    186. </div>
    187. <div class="pic">
    188. <span class="iconfont icon-DOC s"></span>
    189. <div class="nav4">
    190. <span>编程</span>
    191. <span>美女</span>
    192. </div>
    193. </div>
    194. <!--右侧导航链接-->
    195. <div class="links4">
    196. <a href="">吃饭</a>
    197. <a href="">周易</a>
    198. <a href="">黄山</a>
    199. <a href="">合肥</a>
    200. <a href="">上海</a>
    201. <a href="">杭州</a>
    202. <a href="">北京</a>
    203. <a href="">其它</a>
    204. </div>
    205. </div>
    206. </div>
    207. <div class="slider">
    208. <a href=""><img src="pic/2.jpg" alt=""></a>
    209. <a href=""><img src="pic/banner-right.jpg" alt=""></a>
    210. </div>
    211. </div>
    212. </body>
    213. </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