demo.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. list-style: none;
  5. text-decoration: none;
  6. box-sizing: border-box;
  7. }
  8. #header {
  9. width: 100%;
  10. height: 35px;
  11. background: #00f;
  12. }
  13. #header .contain {
  14. width: 1089px;
  15. height: 100%;
  16. background: #f00;
  17. margin: 0 auto;
  18. overflow: hidden;
  19. }
  20. #header .contain .login {
  21. width: 230px;
  22. height: 100%;
  23. background: #ff0;
  24. float: left;
  25. }
  26. #header .contain .list {
  27. width: 230px;
  28. height: 100%;
  29. background: #0f0;
  30. float: right;
  31. }
  32. /* 上半部分 */
  33. #main .shop-top .part-one {
  34. width: 100%;
  35. height: 201px;
  36. }
  37. #main .shop-top .part-one .container {
  38. width: 1089px;
  39. height: 100%;
  40. margin: 0 auto;
  41. }
  42. #main .shop-top .part-one .container .container-top {
  43. width: 100%;
  44. height: 115px;
  45. background: #00f;
  46. overflow: hidden;
  47. }
  48. /* logo盒子 */
  49. #main .shop-top .part-one .container .container-top .logo {
  50. width: 176px;
  51. height: 49px;
  52. float: left;
  53. }
  54. #main .shop-top .part-one .container .container-top .logo img {
  55. width: 100%;
  56. height: 100%;
  57. margin: 25px;
  58. }
  59. /* 搜索盒子 */
  60. #main .shop-top .part-one .container .container-top .search {
  61. width: 536px;
  62. height: 100%;
  63. margin-left: 123px;
  64. background: #f00;
  65. float: left;
  66. }
  67. /* 购物车 */
  68. #main .shop-top .part-one .container .container-top .car {
  69. width: 90px;
  70. height: 100%;
  71. margin-left: 52px;
  72. background: #ff0;
  73. float: left;
  74. }
  75. #main .shop-top .part-one .container .container-bottom {
  76. width: 100%;
  77. height: 86px;
  78. background: #0ff;
  79. }
  80. /* 第二部分 */
  81. #main .shop-top .part-two {
  82. width: 100%;
  83. height: 576px;
  84. background: url("./images/banner.png") no-repeat;
  85. }
  86. #main .shop-top .part-two .dialogList {
  87. width: 260px;
  88. height: 546px;
  89. background: rgba(0, 0, 0, .3);
  90. color: #fff;
  91. margin-left: 415px;
  92. }
  93. /* 第三部分 */
  94. #main .shop-top .part-three {
  95. width: 1200px;
  96. height: 376px;
  97. background: #f00;
  98. margin: 0 auto;
  99. overflow: hidden;
  100. }
  101. #main .shop-top .part-three .list-one {
  102. width: 590px;
  103. height: 316px;
  104. background: #ff0;
  105. float: left;
  106. margin-top: 36px;
  107. }
  108. #main .shop-top .part-three .list-top {
  109. width: 100%;
  110. height: 35px;
  111. background: purple;
  112. }
  113. #main .shop-top .part-three .list-bottom {
  114. width: 100%;
  115. height: 254px;
  116. margin-top: 27px;
  117. background: #0f0;
  118. }
  119. #main .shop-top .part-three .list-two {
  120. width: 590px;
  121. height: 316px;
  122. background: #ff0;
  123. float: left;
  124. margin-top: 36px;
  125. margin-left: 20px;
  126. }
  127. /* 下半部分 */
  128. #main .shop-bottom {
  129. width: 100%;
  130. height: 100%;
  131. background: #eee;
  132. }
  133. #main .shop-bottom .part-four {
  134. width: 1200px;
  135. height: 554px;
  136. background: #ff0;
  137. margin: 0 auto;
  138. }
  139. #main .shop-bottom .part-five {
  140. width: 1200px;
  141. height: 554px;
  142. background: #f00;
  143. margin: 0 auto;
  144. }
  145. #main .shop-bottom .part-six {
  146. width: 1200px;
  147. height: 554px;
  148. background: #0ff;
  149. margin: 0 auto;
  150. }
  151. .titleMain {
  152. width: 100%;
  153. height: 77px;
  154. background: #00f;
  155. }
  156. .shopMain {
  157. width: 100%;
  158. height: 477px;
  159. background: #0f0;
  160. }
  161. #main .shop-bottom .part-seven {
  162. width: 1200px;
  163. height: 99px;
  164. margin: 0 auto;
  165. }
  166. #main .shop-bottom .part-seven img {
  167. width: 129px;
  168. height: 36px;
  169. display: block;
  170. margin: 30px auto 0;
  171. }
  172. /* 页尾 */
  173. #footer {
  174. width: 1200px;
  175. height: 377px;
  176. background: #f00;
  177. margin: 0 auto;
  178. }