demo.css 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. list-style: none;
  5. text-decoration: none;
  6. box-sizing: border-box;
  7. }
  8. /* 主体给宽不给高 */
  9. #box {
  10. width: 100%;
  11. }
  12. /* 头部 */
  13. #box #header {
  14. width: 100%;
  15. height: 72px;
  16. }
  17. #header .container {
  18. width: 1200px;
  19. height: 100%;
  20. margin: 0 auto;
  21. overflow: hidden;
  22. }
  23. #header .container .left {
  24. width: 92px;
  25. height: 42px;
  26. float: left;
  27. }
  28. #header .container .left img {
  29. width: 100%;
  30. height: 100%;
  31. margin-top: 14px;
  32. }
  33. #header .container .mid {
  34. width: 189px;
  35. height: 100%;
  36. float: left;
  37. overflow: hidden;
  38. margin-left: 94px;
  39. }
  40. #header .container .mid .address {
  41. width: 68px;
  42. height: 25px;
  43. float: left;
  44. margin-top: 18px;
  45. }
  46. #header .container .mid .address .picture1 {
  47. font-size: 15px;
  48. }
  49. #header .container .mid .address .picture2 {
  50. font-size: 9px;
  51. margin-left: -6px;
  52. }
  53. #header .container .mid .address .city {
  54. font-size: 16px;
  55. margin-left: -5px;
  56. }
  57. #header .container .mid .nav {
  58. width: 100px;
  59. height: 100%;
  60. float: right;
  61. }
  62. #header .container .mid .nav ul{
  63. overflow: hidden;
  64. margin-left: 18px;
  65. margin-top: 18px;
  66. }
  67. #header .container .mid .nav ul li{
  68. float: left;
  69. }
  70. #header .container .mid .nav ul li a {
  71. font-size: 16px;
  72. color: #000;
  73. }
  74. #header .container .mid .nav ul li:first-child a {
  75. color: #FF1268;
  76. }
  77. #header .container .mid .nav ul li:last-child {
  78. margin-left: 15px;
  79. }
  80. #header .container .mid .nav ul li a:hover {
  81. color: #FF1268;
  82. }
  83. #header .container .right {
  84. width: 627px;
  85. height: 100%;
  86. float: right;
  87. overflow: hidden;
  88. }
  89. #header .container .right .search {
  90. width: 431px;
  91. height: 46px;
  92. float: left;
  93. overflow: hidden;
  94. background: #f8f8f8;
  95. border-radius: 20px;
  96. margin-top: 13px;
  97. }
  98. #header .container .right .search img {
  99. width: 17px;
  100. height: 18px;
  101. float: left;
  102. margin-left: 20px;
  103. margin-top: 15px;
  104. }
  105. #header .container .right .search input {
  106. width: 319px;
  107. height: 46px;
  108. border: none;
  109. outline: none;
  110. float: left;
  111. margin-left: 9px;
  112. background: #f8f8f8;
  113. }
  114. #header .container .right .search .btn {
  115. width: 66px;
  116. height: 46px;
  117. text-align: center;
  118. line-height: 46px;
  119. float: left;
  120. font-size: 16px;
  121. color: #fff;
  122. background: #FF1268;
  123. }
  124. #header .container .right .login {
  125. width: 62px;
  126. height: 72px;
  127. float: left;
  128. overflow: hidden;
  129. margin-left: 44px;
  130. }
  131. #header .container .right .login .picture {
  132. font-size: 26px;
  133. float: left;
  134. display: block;
  135. margin-top: 22px;
  136. }
  137. #header .container .right .login span:last-child {
  138. font-size: 15px;
  139. float: left;
  140. display: block;
  141. margin-top: 25px;
  142. margin-left: 6px;
  143. }
  144. #header .container .right .downLoad {
  145. width: 62px;
  146. height: 72px;
  147. float: right;
  148. overflow: hidden;
  149. }
  150. #header .container .right .downLoad .picture {
  151. font-size: 26px;
  152. float: left;
  153. display: block;
  154. margin-top: 22px;
  155. }
  156. #header .container .right .downLoad span:last-child {
  157. font-size: 15px;
  158. float: left;
  159. display: block;
  160. margin-top: 25px;
  161. margin-left: 6px;
  162. }
  163. /* 主体 */
  164. #main .container {
  165. width: 1200px;
  166. margin: 0 auto;
  167. }
  168. #main .container .banner {
  169. width: 100%;
  170. height: 320px;
  171. }
  172. #main .container .banner img {
  173. width: 100%;
  174. height: 100%;
  175. }
  176. #main .container .list {
  177. width: 1200px;
  178. height: 118px;
  179. border: 1px solid #ccc;
  180. margin-top: 17px;
  181. overflow: hidden;
  182. padding-top: 29px;
  183. }
  184. #main .container .list .listItem {
  185. width: 119px;
  186. height: 69px;
  187. float: left;
  188. }
  189. #main .container .list .listItem .word {
  190. font-size: 16px;
  191. width: 100%;
  192. text-align: center;
  193. }
  194. #main .container .list .listItem .word:hover {
  195. color: #FF1268;
  196. }
  197. #main .container .list .listItem .picture {
  198. margin: 0 auto;
  199. }
  200. #main .container .list .listItem:nth-child(1) .picture {
  201. width: 48px;
  202. height: 48px;
  203. background: url("./images/picture.png");
  204. background-position: 0px 0px;
  205. background-size: cover;
  206. }
  207. #main .container .list .listItem:nth-child(2) .picture {
  208. width: 48px;
  209. height: 48px;
  210. background: url("./images/picture.png");
  211. background-position: 0px -68px;
  212. background-size: cover;
  213. }
  214. #main .container .list .listItem:nth-child(3) .picture {
  215. width: 48px;
  216. height: 48px;
  217. background: url("./images/picture.png");
  218. background-position: 0px -128px;
  219. background-size: cover;
  220. }
  221. #main .container .list .listItem:nth-child(4) .picture {
  222. width: 48px;
  223. height: 48px;
  224. background: url("./images/picture.png");
  225. background-position: 0px -187px;
  226. background-size: cover;
  227. }
  228. #main .container .list .listItem:nth-child(5) .picture {
  229. width: 48px;
  230. height: 48px;
  231. background: url("./images/picture.png");
  232. background-position: 0px -242px;
  233. background-size: cover;
  234. }
  235. #main .container .list .listItem:nth-child(6) .picture {
  236. width: 48px;
  237. height: 48px;
  238. background: url("./images/picture.png");
  239. background-position: 0px -300px;
  240. background-size: cover;
  241. }
  242. #main .container .list .listItem:nth-child(7) .picture {
  243. width: 48px;
  244. height: 48px;
  245. background: url("./images/picture.png");
  246. background-position: 0px -360px;
  247. background-size: cover;
  248. }
  249. #main .container .list .listItem:nth-child(8) .picture {
  250. width: 48px;
  251. height: 48px;
  252. background: url("./images/picture.png");
  253. background-position: 0px -424px;
  254. background-size: cover;
  255. }
  256. #main .container .list .listItem:nth-child(9) .picture {
  257. width: 48px;
  258. height: 48px;
  259. background: url("./images/picture.png");
  260. background-position: 0px -481px;
  261. background-size: cover;
  262. }
  263. #main .container .list .listItem:nth-child(10) .picture {
  264. width: 48px;
  265. height: 48px;
  266. background: url("./images/picture.png");
  267. background-position: 0px -540px;
  268. background-size: cover;
  269. }
  270. #main .container .shop1 {
  271. width: 100%;
  272. height: 457px;
  273. border: 1px solid #f00;
  274. margin-top: 12px;
  275. }
  276. #main .container .shop2 {
  277. width: 100%;
  278. height: 457px;
  279. border: 1px solid #f00;
  280. margin-top: 12px;
  281. }
  282. #main .container .shop3 {
  283. width: 100%;
  284. height: 457px;
  285. border: 1px solid #f00;
  286. margin-top: 12px;
  287. }
  288. #main .container .shop4 {
  289. width: 100%;
  290. height: 457px;
  291. border: 1px solid #f00;
  292. margin-top: 12px;
  293. margin-bottom: 66px;
  294. }
  295. /* 页尾 */
  296. #footer {
  297. width: 100%;
  298. height: 350px;
  299. background: #f8f8f8;
  300. }
  301. #footer .container {
  302. width: 1200px;
  303. height: 100%;
  304. background: #0f0;
  305. margin: 0 auto;
  306. }