index.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. #nav{
  2. height: 35px;
  3. background: #EEEEEE;
  4. }
  5. .nav-center{
  6. width: 1199px;
  7. height: 35px;
  8. /* background: #0f0; */
  9. margin:0 auto;
  10. }
  11. .nav-left{
  12. float: left;
  13. }
  14. .nav-right{
  15. float: right;
  16. }
  17. /* .nav-left a,.nav-right a{
  18. line-height: 35px;
  19. color:#888888 ;
  20. } */
  21. .nav-center a{
  22. line-height: 35px;
  23. color:#888888 ;
  24. }
  25. /* .nav-left .active,.nav-right .active{
  26. color: #6F26BD ;
  27. } */
  28. .nav-center .active{
  29. color: #6F26BD ;
  30. }
  31. .nav-left-first{
  32. margin-right: 25px;
  33. }
  34. .nav-center span{
  35. color:#888888 ;
  36. line-height: 35px;
  37. }
  38. /* 头部开始 */
  39. .header{
  40. height: 151px;
  41. width:1199px;
  42. /* background: red; */
  43. margin:0 auto;
  44. }
  45. .header-logo{
  46. float: left;
  47. margin-top:44px;
  48. }
  49. .search-box{
  50. float: left;
  51. margin-left:123px;
  52. margin-top:43px;
  53. width: 536px;
  54. height: 100px;
  55. /* background: #00f; */
  56. }
  57. .cart-box{
  58. float: left;
  59. }
  60. .header-search{
  61. width: 536px;
  62. height: 44px;
  63. background: #6F26BD;
  64. border:2px solid #6F26BD;
  65. }
  66. .search-text{
  67. width:474px;
  68. height:44px;
  69. border:none;
  70. float: left;
  71. /* 文本缩进 */
  72. text-indent: 5px;
  73. }
  74. .search-btn{
  75. width:62px;
  76. height:44px;
  77. border:none;
  78. float: left;
  79. background: #6F26BD;
  80. font-size: 16px;
  81. color: #fff;
  82. }
  83. .header-list{
  84. margin-top:10px;
  85. }
  86. .header-list a{
  87. color:#999999;
  88. margin-right: 25px;
  89. }
  90. .cart-box{
  91. margin-top:55px;
  92. margin-left:52px;
  93. color:#959595 ;
  94. }
  95. .cart-box img{
  96. /* 居中对齐 */
  97. vertical-align: middle;
  98. }
  99. .menu-box{
  100. height: 50px;
  101. width: 1199px;
  102. /* background: #f00; */
  103. margin:0 auto;
  104. }
  105. .menu li{
  106. float: left;
  107. width:145px;
  108. height: 50px;
  109. /* background: yellow; */
  110. color: #606060 ;
  111. font-size: 14px;
  112. line-height: 50px;
  113. text-align: center;
  114. }
  115. .menu {
  116. margin-left:260px;
  117. }
  118. /* 子元素相对于父元素定位
  119. 把子元素设置为绝对定位 absolute
  120. 父元素设置为relative
  121. */
  122. .menu li.active{
  123. /* background: #6F26BD; */
  124. position: relative;
  125. }
  126. .active img{
  127. position: absolute;
  128. right: 34px;
  129. top: -9px;
  130. }
  131. .slide-box{
  132. height: 546px;
  133. /* background: #f00; */
  134. background: url(../images/bg.png) center 0;
  135. }
  136. .slide-center{
  137. height: 546px;
  138. /* background: #0f0; */
  139. position: relative;
  140. }
  141. .slide-menu{
  142. width: 260px;
  143. height: 596px;
  144. /* background: purple; */
  145. background: rgba(0,0,0,0.4);
  146. position: absolute;
  147. top:-50px;
  148. }
  149. .slide-menu-title{
  150. height: 50px;
  151. line-height: 50px;
  152. background: #6F26BD ;
  153. text-align: center;
  154. color: #fff;
  155. font-size: 14px;
  156. font-weight: 400;
  157. }
  158. .slide-menu-list{
  159. padding: 16px 7px 0 7px;
  160. /* background: #0f0; */
  161. }
  162. .slide-list-left{
  163. width:30px;
  164. float: left;
  165. text-align: center;
  166. /* background: #00f; */
  167. padding-top:20px;
  168. }
  169. .slide-list-right{
  170. width: 216px;
  171. /* background: #f00; */
  172. float: left;
  173. border-bottom: 1px solid #fff;
  174. }
  175. .slide-right-title{
  176. margin-top:17px;
  177. font-size: 16px;
  178. font-weight: 400;
  179. color:#fff;
  180. }
  181. .slide-right-list{
  182. font-size: 13px;
  183. color: #fff;
  184. margin:10px 0 10px 0;
  185. }
  186. .group-box{
  187. height: 408px;
  188. /* background: #f00; */
  189. }
  190. .pindan{
  191. width: 590px;
  192. /* background: #0f0; */
  193. float: left;
  194. margin-top:41px;
  195. }
  196. .seckill{
  197. width: 590px;
  198. /* background: #0f0; */
  199. float: right;
  200. margin-top:41px;
  201. }
  202. .group-title{
  203. border-bottom: 2px solid #6F26BD;
  204. }
  205. .group-title-txt{
  206. width: 125px;
  207. height: 34px;
  208. line-height: 34px;
  209. background: #6F26BD;
  210. color: #fff;
  211. font-size: 14px;
  212. text-align: center;
  213. margin-bottom: 1px;
  214. }
  215. .group-list{
  216. margin-top:19px;
  217. }
  218. .group-list li{
  219. width: 186px;
  220. height: 311px;
  221. /* background: #f00; */
  222. float: left;
  223. margin-right: 10px;
  224. }
  225. .content{
  226. background: #F4F4F4;
  227. height: 800px;
  228. }
  229. .meirong-title{
  230. font-size: 26px;
  231. color:#E74079 ;
  232. text-align: center;
  233. height: 80px;
  234. line-height: 80px;
  235. }
  236. .hot{
  237. width: 118px;
  238. height: 476px;
  239. background: #f00;
  240. float: left;
  241. }
  242. .hufu{
  243. width: 194px;
  244. height: 476px;
  245. background: #0f0;
  246. float: left;
  247. }
  248. .meirong-list{
  249. width: 594px;
  250. height: 476px;
  251. background: #00f;
  252. float: left;
  253. }
  254. .hot-brand{
  255. width: 292px;
  256. height: 476px;
  257. background: #E74079;
  258. float: left;
  259. }