index.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. list-style: none;
  5. text-decoration: none;
  6. box-sizing: border-box;
  7. }
  8. #box {
  9. width: 100%;
  10. }
  11. /* 头部代码 */
  12. #header {
  13. width: 100%;
  14. height: 35px;
  15. background: #00f;
  16. }
  17. #header .container {
  18. width: 1200px;
  19. height: 100%;
  20. background-color: aqua;
  21. margin: 0 auto;
  22. overflow: hidden;
  23. }
  24. #header .container .left {
  25. width: 228px;
  26. height: 100%;
  27. float: left;
  28. background: #0f0;
  29. }
  30. #header .container .right {
  31. width: 262px;
  32. height: 100%;
  33. float: right;
  34. background: #ff0;
  35. }
  36. /* 主体 */
  37. #main {
  38. width: 100%;
  39. }
  40. /* 第一部分 */
  41. #main .tip {
  42. width: 100%;
  43. height: 152px;
  44. background: pink;
  45. }
  46. #main .tip .container {
  47. width: 1200px;
  48. height: 100%;
  49. background: gold;
  50. margin: 0 auto;
  51. overflow: hidden;
  52. }
  53. #main .tip .container .logo {
  54. width: 176px;
  55. height: 49px;
  56. float: left;
  57. background: #fff;
  58. }
  59. #main .tip .container .search {
  60. width: 536px;
  61. height: 73px;
  62. float: left;
  63. background: #f0f;
  64. }
  65. #main .tip .container .shop {
  66. width: 90px;
  67. height: 21px;
  68. float: left;
  69. background: #00f;
  70. }
  71. /* 第二部分 */
  72. #main .nav {
  73. width: 1200px;
  74. height: 50px;
  75. margin: 0 auto;
  76. position: relative;
  77. }
  78. #main .nav ul {
  79. overflow: hidden;
  80. }
  81. #main .nav ul li {
  82. float: left;
  83. padding: 12px 51.5px;
  84. }
  85. #main .nav ul li:hover {
  86. background: #6F26BD;
  87. }
  88. #main .nav ul li:hover a{
  89. color: #fff;
  90. }
  91. #main .nav ul li a {
  92. font-size: 14px;
  93. }
  94. #main .nav ul li:first-child {
  95. width: 260px;
  96. height: 50px;
  97. padding: 0;
  98. text-align: center;
  99. line-height: 50px;
  100. background: #6F26BD;
  101. }
  102. #main .nav ul li:first-child a{
  103. color: #fff;
  104. }
  105. #main .nav ul li a{
  106. color: #000;
  107. }
  108. #main .nav ul li:first-child:hover {
  109. background-color: #f00;
  110. }
  111. #main .nav ul li:first-child:hover a {
  112. color: #ff0;
  113. }
  114. #main .nav .hot {
  115. position: absolute;
  116. top: -1px;
  117. left: 818px;
  118. }
  119. /* 第三部分 */
  120. #main .banner {
  121. width: 100%;
  122. height: 576px;
  123. /* position: relative; */
  124. }
  125. #main .banner img {
  126. width: 100%;
  127. height: 100%;
  128. }
  129. #main .banner .container {
  130. width: 1200px;
  131. height: 100%;
  132. margin: 0 auto;
  133. position: relative;
  134. top: -581px;
  135. }
  136. #main .banner .dialog {
  137. width: 260px;
  138. height: 546px;
  139. background: #000;
  140. opacity: .4;
  141. position: absolute;
  142. top: 0;
  143. left: 0;
  144. }
  145. /* 第四部分 */
  146. #main .shop {
  147. width: 1200px;
  148. height: 376px;
  149. overflow: hidden;
  150. background: #0f0;
  151. margin: 12px auto 53px;
  152. }
  153. #main .shop .left {
  154. width: 590px;
  155. height: 100%;
  156. float: left;
  157. background: gold;
  158. }
  159. #main .shop .right {
  160. width: 590px;
  161. height: 100%;
  162. float: right;
  163. background: rgb(0, 21, 255);
  164. }
  165. /* 第五部分 */
  166. #main .list {
  167. width: 100%;
  168. height: 100%;
  169. background: #eee;
  170. padding-bottom: 40px;
  171. }
  172. #main .list .container {
  173. width: 1200px;
  174. margin: 0 auto;
  175. }
  176. #main .list .container .partOne {
  177. width: 100%;
  178. height: 566px;
  179. background: pink;
  180. }
  181. #main .list .container .partTwo {
  182. width: 100%;
  183. height: 566px;
  184. background: plum;
  185. }
  186. #main .list .container .partThree {
  187. width: 100%;
  188. height: 566px;
  189. background: peachpuff;
  190. }
  191. #main .list .container img {
  192. width: 129px;
  193. height: 36px;
  194. display: block;
  195. margin: 30px auto 0;
  196. }
  197. /* 页尾 */
  198. #footer {
  199. width: 100%;
  200. height: 375px;
  201. background: #ff0;
  202. }
  203. #footer .container {
  204. width: 1200px;
  205. height: 100%;
  206. background: goldenrod;
  207. margin: 0 auto;
  208. }
  209. #footer .container .top {
  210. width: 100%;
  211. height: 195px;
  212. background: #00f;
  213. }
  214. #footer .container .mid {
  215. width: 100%;
  216. height: 100px;
  217. background: #f0f;
  218. }
  219. #footer .container .bottom {
  220. width: 100%;
  221. height: 80px;
  222. background: pink;
  223. }