index.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. list-style: none;
  5. text-decoration: none;
  6. box-sizing: border-box;
  7. }
  8. /* 头部样式 */
  9. #header {
  10. width: 100%;
  11. height: 72px;
  12. box-shadow: 0 12px 16px rgba(220,220,220,.5);
  13. }
  14. #header .content {
  15. width: 1200px;
  16. height: 100%;
  17. margin: 0 auto;
  18. }
  19. #header .content .left {
  20. width: 332px;
  21. height: 100%;
  22. float: left;
  23. }
  24. #header .content .left .pictures {
  25. width: 92px;
  26. height: 45px;
  27. float: left;
  28. margin-top: 14px;
  29. }
  30. #header .content .left .pictures img {
  31. width: 100%;
  32. height: 100%;
  33. }
  34. #header .content .left .address {
  35. width: 63px;
  36. height: 100%;
  37. float: left;
  38. margin-left: 52px;
  39. line-height: 72px;
  40. }
  41. #header .content .left .address .icon-dizhi {
  42. font-size: 12px;
  43. float: left;
  44. }
  45. #header .content .left .address .icon-xiajiantou {
  46. font-size: 9px;
  47. float: left;
  48. margin-left: 3px;
  49. }
  50. #header .content .left .address span {
  51. float: left;
  52. margin-left: 7px;
  53. }
  54. #header .content .left .list {
  55. width: 88px;
  56. height: 100%;
  57. float: left;
  58. margin-left: 37px;
  59. line-height: 72px;
  60. }
  61. #header .content .left .list ul {
  62. overflow: hidden;
  63. }
  64. #header .content .left .list ul li {
  65. float: left;
  66. }
  67. #header .content .left .list ul li:last-child {
  68. float: right;
  69. }
  70. #header .content .left .list ul li a {
  71. color: #000;
  72. }
  73. #header .content .left .list ul li:hover a {
  74. color: #FF1268;
  75. }
  76. #header .content .left .list ul li:first-child a {
  77. color: #FF1268;
  78. }
  79. #header .content .right {
  80. width: 585px;
  81. height: 100%;
  82. float: right;
  83. }
  84. #header .content .right .search {
  85. width: 401px;
  86. height: 100%;
  87. float: left;
  88. }
  89. #header .content .right .search input {
  90. width: 100%;
  91. height: 46px;
  92. margin-top: 12px;
  93. border-radius: 20px;
  94. background: #f8f8f8;
  95. border: 1px solid #f8f8f8;
  96. outline: none;
  97. padding-left: 33px;
  98. }
  99. #header .content .right .search input:hover {
  100. border: 1px solid #FF1268;
  101. }
  102. #header .content .right .list {
  103. width: 145px;
  104. height: 100%;
  105. float: right;
  106. }
  107. #header .content .right .list .listItem {
  108. width: 61px;
  109. height: 100%;
  110. float: left;
  111. }
  112. #header .content .right .list .listItem:hover .title {
  113. color: #FF1268;
  114. }
  115. #header .content .right .list .listItem:last-child {
  116. margin-left: 23px;
  117. }
  118. #header .content .right .list .listItem img {
  119. width: 26px;
  120. height: 26px;
  121. float: left;
  122. margin-top: 21px;
  123. }
  124. #header .content .right .list .listItem .title {
  125. width: 32px;
  126. height: 100%;
  127. float: right;
  128. line-height: 72px;
  129. }
  130. /* 主体样式 */
  131. #main .content {
  132. width: 1200px;
  133. margin: 0 auto;
  134. }
  135. #main .content .banner {
  136. width: 100%;
  137. height: 320px;
  138. background: url('./images/4.avif');
  139. }
  140. #main .content .list {
  141. width: 1200px;
  142. height: 120px;
  143. margin-top: 12px;
  144. border: 1px solid #EBEBEB;
  145. }
  146. #main .content .list dl {
  147. width: 119.8px;
  148. height: 100%;
  149. float: left;
  150. }
  151. #main .content .list dl dt {
  152. width: 48px;
  153. height: 48px;
  154. margin-top: 15px;
  155. margin-left: 36px;
  156. background: url('./images/5.png');
  157. background-position: 0 8px;
  158. background-size: cover;
  159. }
  160. #main .content .list dl:nth-child(2) dt {
  161. background: url('./images/5.png');
  162. background-position: 0 -59px;
  163. background-size: cover;
  164. }
  165. #main .content .list dl:nth-child(3) dt {
  166. background: url('./images/5.png');
  167. background-position: 0 -118px;
  168. background-size: cover;
  169. }
  170. #main .content .list dl:nth-child(4) dt {
  171. background: url('./images/5.png');
  172. background-position: 0 -177px;
  173. background-size: cover;
  174. }
  175. #main .content .list dl:nth-child(5) dt {
  176. background: url('./images/5.png');
  177. background-position: 0 -231px;
  178. background-size: cover;
  179. }
  180. #main .content .list dl:nth-child(6) dt {
  181. background: url('./images/5.png');
  182. background-position: 0 -290px;
  183. background-size: cover;
  184. }
  185. #main .content .list dl:nth-child(7) dt {
  186. background: url('./images/5.png');
  187. background-position: 0 -352px;
  188. background-size: cover;
  189. }
  190. #main .content .list dl:nth-child(8) dt {
  191. background: url('./images/5.png');
  192. background-position: 0 -412px;
  193. background-size: cover;
  194. }
  195. #main .content .list dl:nth-child(9) dt {
  196. background: url('./images/5.png');
  197. background-position: 0 -473px;
  198. background-size: cover;
  199. }
  200. #main .content .list dl:last-child dt {
  201. background: url('./images/5.png');
  202. background-position: 0 -530px;
  203. background-size: cover;
  204. }
  205. #main .content .list dl dd {
  206. width: 120px;
  207. height: 22.5px;
  208. margin-top: 7px;
  209. text-align: center;
  210. }
  211. #main .content .list dl:hover dd {
  212. color: #FF1268;
  213. }
  214. #main .content .type {
  215. width: 100%;
  216. height: 457px;
  217. padding: 20px;
  218. margin-top: 12px;
  219. border: 1px solid #EBEBEB;
  220. }
  221. #main .content .type .top {
  222. width: 100%;
  223. height: 40px;
  224. }
  225. #main .content .type .top .left {
  226. width: 500px;
  227. height: 100%;
  228. float: left;
  229. font-size: 24px;
  230. color: #111;
  231. line-height: 40px;
  232. }
  233. #main .content .type .top .right {
  234. width: 56px;
  235. height: 100%;
  236. float: right;
  237. font-size: 14px;
  238. color: #9B9B9B;
  239. margin-right: 23px;
  240. }
  241. #main .content .type .top .right:hover {
  242. color: #FF1268;
  243. }
  244. #main .content .type .bottom .left {
  245. width: 272px;
  246. height: 360px;
  247. float: left;
  248. }
  249. #main .content .type .bottom .left .pictures {
  250. width: 272px;
  251. height: 360px;
  252. }
  253. #main .content .type .bottom .left .pictures img {
  254. width: 100%;
  255. height: 100%;
  256. }
  257. #main .content .type .bottom .right {
  258. width: 870px;
  259. height: 360px;
  260. float: right;
  261. }
  262. #main .content .type .bottom .right .rightItem {
  263. width: 273px;
  264. height: 160px;
  265. float: left;
  266. margin-left: 20px;
  267. }
  268. #main .content .type .bottom .right .rightItem:first-child,#main .content .type .bottom .right .rightItem:nth-child(4){
  269. margin-left: 0;
  270. }
  271. #main .content .type .bottom .right .rightItem:nth-child(6),
  272. #main .content .type .bottom .right .rightItem:nth-child(4),
  273. #main .content .type .bottom .right .rightItem:nth-child(5) {
  274. margin-top: 40px;
  275. }
  276. #main .content .type .bottom .right .rightItem .pictures {
  277. width: 118px;
  278. height: 160px;
  279. float: left;
  280. }
  281. #main .content .type .bottom .right .rightItem .pictures img {
  282. width: 100%;
  283. height: 100%;
  284. }
  285. #main .content .type .bottom .right .rightItem .desc {
  286. width: 138px;
  287. height: 100%;
  288. float: right;
  289. }
  290. #main .content .type .bottom .right .rightItem .desc .title {
  291. color: #4A4A4A;
  292. font-size: 14px;
  293. /* 溢出隐藏*/
  294. /* overflow: hidden; */
  295. /* 展示省略号 */
  296. /* text-overflow: ellipsis; */
  297. /* 强制不换行 */
  298. /* white-space: nowrap; */
  299. /* 超出两行显示省略号 */
  300. overflow: hidden;
  301. text-overflow: ellipsis;
  302. display: -webkit-box;
  303. -webkit-line-clamp: 2;
  304. -webkit-box-orient: vertical;
  305. }
  306. #main .content .type .bottom .right .rightItem .desc .title:hover {
  307. color: #FF1268;
  308. }
  309. #main .content .type .bottom .right .rightItem .desc .venue {
  310. color: #9B9B9B;
  311. font-size: 12px;
  312. margin-top: 12px;
  313. }
  314. #main .content .type .bottom .right .rightItem .desc .venue:hover {
  315. color: #FF1268;
  316. }
  317. #main .content .type .bottom .right .rightItem .desc .time {
  318. color: #9B9B9B;
  319. font-size: 12px;
  320. }
  321. #main .content .type .bottom .right .rightItem .desc .time:hover {
  322. color: #FF1268;
  323. }
  324. #main .content .type .bottom .right .rightItem .desc .price {
  325. color: #FF1268;
  326. margin-top: 52px;
  327. }
  328. #main .content .type .bottom .right .rightItem .desc .price span {
  329. font-size: 12px;
  330. color: #FF1268;
  331. }
  332. /* 页尾样式 */
  333. #footer {
  334. width: 100%;
  335. height: 347px;
  336. background: #f8f8f8;
  337. margin-top: 30px;
  338. }
  339. #footer .content {
  340. width: 1200px;
  341. height: 100%;
  342. background: pink;
  343. margin: 0 auto;
  344. }