common.css 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. /* 声明字体图标 这里一定要注意路径的变化 */
  2. @font-face {
  3. font-family: 'icomoon';
  4. src: url('../fonts/icomoon.eot?tomleg');
  5. src: url('../fonts/icomoon.eot?tomleg#iefix') format('embedded-opentype'),
  6. url('../fonts/icomoon.ttf?tomleg') format('truetype'),
  7. url('../fonts/icomoon.woff?tomleg') format('woff'),
  8. url('../fonts/icomoon.svg?tomleg#icomoon') format('svg');
  9. font-weight: normal;
  10. font-style: normal;
  11. font-display: block;
  12. }
  13. /* 版心 */
  14. .w {
  15. width: 1200px;
  16. margin: 0 auto;
  17. }
  18. .fl {
  19. float: left;
  20. }
  21. .fr {
  22. float: right;
  23. }
  24. .style_red {
  25. color: #c81623;
  26. }
  27. /* 快捷导航模块 */
  28. .shortcut {
  29. height: 31px;
  30. line-height: 31px;
  31. background-color: #f1f1f1;
  32. }
  33. .shortcut ul li {
  34. float: left;
  35. }
  36. /* 选择所有的偶数的小li */
  37. .shortcut .fr ul li:nth-child(even) {
  38. width: 1px;
  39. height: 12px;
  40. background-color: #666;
  41. margin: 9px 15px 0;
  42. }
  43. .arrow-icon::after {
  44. content: '\e91e';
  45. font-family: 'icomoon';
  46. margin-left: 6px;
  47. }
  48. /* header 头部制作 */
  49. .header {
  50. position: relative;
  51. height: 105px;
  52. }
  53. .logo {
  54. position: absolute;
  55. top: 25px;
  56. width: 171px;
  57. height: 61px;
  58. }
  59. .logo a {
  60. display: block;
  61. width: 171px;
  62. height: 61px;
  63. background: url(../images/logo.png) no-repeat;
  64. /* font-size: 0;京东的做法*/
  65. /* 淘宝的做法让文字隐藏 */
  66. text-indent: -9999px;
  67. overflow: hidden;
  68. }
  69. .search {
  70. position: absolute;
  71. left: 346px;
  72. top: 25px;
  73. width: 538px;
  74. height: 36px;
  75. border: 2px solid #b1191a;
  76. }
  77. .search input {
  78. float: left;
  79. width: 454px;
  80. height: 32px;
  81. padding-left: 10px;
  82. }
  83. .search button {
  84. float: left;
  85. width: 80px;
  86. height: 32px;
  87. background-color: #b1191a;
  88. font-size: 16px;
  89. color: #fff;
  90. }
  91. .hotwords {
  92. position: absolute;
  93. top: 66px;
  94. left: 346px;
  95. }
  96. .hotwords a {
  97. margin: 0 10px;
  98. }
  99. .shopcar {
  100. position: absolute;
  101. right: 60px;
  102. top: 25px;
  103. width: 140px;
  104. height: 35px;
  105. line-height: 35px;
  106. text-align: center;
  107. border: 1px solid #dfdfdf;
  108. background-color: #f7f7f7;
  109. }
  110. .shopcar::before {
  111. content: '\e93a';
  112. font-family: 'icomoon';
  113. margin-right: 5px;
  114. color: #b1191a;
  115. }
  116. .shopcar::after {
  117. content: '\e920';
  118. font-family: 'icomoon';
  119. margin-left: 10px;
  120. }
  121. .count {
  122. position: absolute;
  123. top: -5px;
  124. left: 105px;
  125. height: 14px;
  126. line-height: 14px;
  127. color: #fff;
  128. background-color: #e60012;
  129. padding: 0 5px;
  130. border-radius: 7px 7px 7px 0;
  131. }
  132. /* nav模块制作 */
  133. .nav {
  134. height: 47px;
  135. border-bottom: 2px solid #b1191a;
  136. }
  137. .nav .dropdown {
  138. float: left;
  139. width: 210px;
  140. height: 45px;
  141. background-color: #b1191a;
  142. }
  143. .nav .navitems {
  144. float: left;
  145. }
  146. .dropdown .dt {
  147. width: 100%;
  148. height: 100%;
  149. color: #fff;
  150. text-align: center;
  151. line-height: 45px;
  152. font-size: 16px;
  153. }
  154. .dropdown .dd {
  155. /* display: none; */
  156. width: 210px;
  157. height: 465px;
  158. background-color: #c81623;
  159. margin-top: 2px;
  160. }
  161. .dropdown .dd ul li {
  162. position: relative;
  163. height: 31px;
  164. line-height: 31px;
  165. margin-left: 2px;
  166. padding-left: 10px;
  167. }
  168. .dropdown .dd ul li:hover {
  169. background-color: #fff;
  170. }
  171. .dropdown .dd ul li::after {
  172. position: absolute;
  173. top: 1px;
  174. right: 10px;
  175. color: #fff;
  176. font-family: 'icomoon';
  177. content: '\e920';
  178. font-size: 14px;
  179. }
  180. .dropdown .dd ul li a {
  181. font-size: 14px;
  182. color: #fff;
  183. }
  184. .dropdown .dd ul li:hover a {
  185. color: #c81623;
  186. }
  187. .navitems ul li {
  188. float: left;
  189. }
  190. .navitems ul li a {
  191. display: block;
  192. height: 45px;
  193. line-height: 45px;
  194. font-size: 16px;
  195. padding: 0 25px;
  196. }
  197. /* 底部模块制作 */
  198. .footer {
  199. height: 415px;
  200. background-color: #f5f5f5;
  201. padding-top: 30px;
  202. }
  203. .mod_service {
  204. height: 80px;
  205. border-bottom: 1px solid #ccc;
  206. }
  207. .mod_service ul li {
  208. float: left;
  209. width: 300px;
  210. height: 50px;
  211. padding-left: 35px;
  212. }
  213. .mod_service ul li h5 {
  214. float: left;
  215. width: 50px;
  216. height: 50px;
  217. background: url(../images/icons.png) no-repeat -252px -2px;
  218. margin-right: 8px;
  219. }
  220. .service_txt h4 {
  221. font-size: 14px;
  222. }
  223. .service_txt p {
  224. font-size: 12px;
  225. }
  226. .mod_help {
  227. height: 185px;
  228. border-bottom: 1px solid #ccc;
  229. padding-top: 20px;
  230. padding-left: 50px;
  231. }
  232. .mod_help dl {
  233. float: left;
  234. width: 200px;
  235. }
  236. .mod_help dl:last-child {
  237. width: 90px;
  238. text-align: center;
  239. }
  240. .mod_help dl dt {
  241. font-size: 16px;
  242. margin-bottom: 10px;
  243. }
  244. .mod_copyright {
  245. text-align: center;
  246. padding-top: 20px;
  247. }
  248. .links {
  249. margin-bottom: 15px;
  250. }
  251. .links a {
  252. margin: 0 3px;
  253. }
  254. .copyright {
  255. line-height: 20px;
  256. }