Blogger Information
Blog 5
fans 0
comment 2
visits 3067
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
2019年12月20日课后作业
Herry.
Original
587 people have browsed it

2019年12月20日课后作业

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <!-- 引入阿里字体图标库的CSS样式-->
  6. <link rel="stylesheet" href="static/font/iconfont.css">
  7. <title>htmlwork</title>
  8. <style>
  9. /*初始化样式*/
  10. *{
  11. margin: 0;
  12. padding: 0;
  13. font-size: 13px;
  14. /*方便布局添加一个轮廓线*/
  15. /*outline: 1px dashed red;*/
  16. }
  17. a{
  18. color: #555555;
  19. font-size: 13px;
  20. /*去掉下划线*/
  21. text-decoration: none;
  22. }
  23. .index-header{
  24. width: 1200px;
  25. min-height: 300px;
  26. margin: 30px auto;
  27. }
  28. .index-header > .top {
  29. height: 70px;
  30. position: relative;
  31. }
  32. .index-header > .top * {
  33. height: inherit;
  34. line-height: 70px;
  35. }
  36. /*顶部logo*/
  37. .index-header > .top > .logo {
  38. width: 176px;
  39. position: absolute;
  40. top: 0;
  41. left: 0;
  42. }
  43. /*搜索框*/
  44. .index-header > .top > .search {
  45. width: 330px;
  46. position: absolute;
  47. top: 0 ;
  48. right: 350px;
  49. }
  50. /*icon*/
  51. .index-header > .top > .quick-start {
  52. width: 300px;
  53. position: absolute;
  54. right: 0;
  55. }
  56. .index-header > .top > .logo img {
  57. height: 100%;
  58. display: block;
  59. }
  60. .index-header > .top > .search > input[type="search"] {
  61. width: 330px;
  62. height: 36px;
  63. border-radius: 10px;
  64. padding: 10px;
  65. }
  66. /*放大镜图标*/
  67. .index-header > .top > .search > input[type="search"] + label {
  68. font-size: 23px;
  69. margin-left: -30px;
  70. position: relative;
  71. top: 5px;
  72. }
  73. .index-header > .top > .search > input[type="search"] :hover {
  74. box-shadow: 0 0 5px #888888;
  75. }
  76. .index-header > .top > .quick-start > span {
  77. font-size: 33px;
  78. margin-right: 6px;
  79. }
  80. .index-header > .top > .quick-start > span:hover {
  81. color: red;
  82. /*设置鼠标样式*/
  83. cursor: pointer;
  84. }
  85. /*中间导航区*/
  86. .index-header > .nav {
  87. height: 44px;
  88. }
  89. .index-header > .nav > .nav-item {
  90. width: 300px;
  91. height: inherit;
  92. position: relative;
  93. float: left;
  94. }
  95. .index-header > .nav > .nav-item > .iconfont {
  96. font-size: 40px;
  97. color: red;
  98. position: absolute;
  99. }
  100. .index-header > .nav > .nav-item > .tag {
  101. width: 40px;
  102. position: absolute;
  103. left: 45px;
  104. border-right: 1px solid #cccccc;
  105. }
  106. .index-header > .nav > .nav-item > .links {
  107. width: 160px;
  108. position: absolute;
  109. left: 95px;
  110. }
  111. .index-header > .nav > .nav-item > .links > a {
  112. margin-right: 8px;
  113. }
  114. .index-header > .nav > .nav-item > .links > a:hover {
  115. color: red;
  116. }
  117. .index-header > .slider-ads {
  118. height: 320px;
  119. position: relative;
  120. }
  121. .index-header > .slider-ads > .slider {
  122. width: 900px;
  123. position: absolute;
  124. }
  125. .index-header > .slider-ads > .ads {
  126. width: 295px;
  127. position: absolute;
  128. right: 0;
  129. }
  130. .index-header > .slider-ads img {
  131. height: 100%;
  132. display: block;
  133. }
  134. .index-header > * {
  135. margin: 20px 0;
  136. }
  137. </style>
  138. </head>
  139. <body>
  140. <!--主框样式-->
  141. <div class="index-header">
  142. <!--上:顶部logo+搜索框search+图标icon-->
  143. <div class="top">
  144. <div class="logo">
  145. <a href=""><img src="static/images/logo.png" alt=""></a>
  146. </div>
  147. <div class="search">
  148. <input type="search" id="search"><label for="search" class="iconfont icon-jinduchaxun"></label>
  149. </div>
  150. <div class="quick-start">
  151. <span class="iconfont icon-huiyuan1"></span>
  152. <span class="iconfont icon-danmu1"></span>
  153. <span class="iconfont icon-fabu"></span>
  154. <span class="iconfont icon-fangda"></span>
  155. <span class="iconfont icon-huiyuan2"></span>
  156. <span class="iconfont icon-dianzan"></span>
  157. </div>
  158. </div>
  159. <!-- 中:导航区nav-->
  160. <div class="nav">
  161. <div class="nav-item">
  162. <span class="iconfont icon-gongdan"></span>
  163. <div class="tag">
  164. <sapn>咨询</sapn>
  165. <span>学习</span>
  166. </div>
  167. <div class="links">
  168. <a href="">器材</a>
  169. <a href="">器材</a>
  170. <a href="">器材</a>
  171. <a href="">器材</a>
  172. <a href="">器材</a>
  173. <a href="">器材</a>
  174. <a href="">器材</a>
  175. <a href="">器材</a>
  176. </div>
  177. </div>
  178. <div class="nav-item">
  179. <span class="iconfont icon-gongdan"></span>
  180. <div class="tag">
  181. <sapn>咨询</sapn>
  182. <span>学习</span>
  183. </div>
  184. <div class="links">
  185. <a href="">器材</a>
  186. <a href="">器材</a>
  187. <a href="">器材</a>
  188. <a href="">器材</a>
  189. <a href="">器材</a>
  190. <a href="">器材</a>
  191. <a href="">器材</a>
  192. <a href="">器材</a>
  193. </div>
  194. </div>
  195. <div class="nav-item">
  196. <span class="iconfont icon-gongdan"></span>
  197. <div class="tag">
  198. <sapn>咨询</sapn>
  199. <span>学习</span>
  200. </div>
  201. <div class="links">
  202. <a href="">器材</a>
  203. <a href="">器材</a>
  204. <a href="">器材</a>
  205. <a href="">器材</a>
  206. <a href="">器材</a>
  207. <a href="">器材</a>
  208. <a href="">器材</a>
  209. <a href="">器材</a>
  210. </div>
  211. </div>
  212. <div class="nav-item">
  213. <span class="iconfont icon-gongdan"></span>
  214. <div class="tag">
  215. <sapn>咨询</sapn>
  216. <span>学习</span>
  217. </div>
  218. <div class="links">
  219. <a href="">器材</a>
  220. <a href="">器材</a>
  221. <a href="">器材</a>
  222. <a href="">器材</a>
  223. <a href="">器材</a>
  224. <a href="">器材</a>
  225. <a href="">器材</a>
  226. <a href="">器材</a>
  227. </div>
  228. </div>
  229. </div>
  230. <!-- 下:轮播图slider+广告ads-->
  231. <div class="slider-ads">
  232. <div class="slider">
  233. <a href=""><img src="static/images/1.jpg" alt=""></a>
  234. </div>
  235. <div class="ads">
  236. <a href=""><img src="static/images/banner-right.jpg" alt=""></a>
  237. </div>
  238. </div>
  239. </div>
  240. </body>
  241. </html>

后附运行代码测试图

Correcting teacher:天蓬老师天蓬老师

Correction status:unqualified

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