body{ color: #000; } a{ color: #000; } a:hover{ color: #ff1111; } .header-top{ background: url(../images/bg/bg-header-xybgs.jpg) center; background-size: contain; } /* 导航 */ .header-nav{ background-color: #C90303; } .header-nav li a{ height: 50px; line-height: 50px; } /* 主体 */ .content{ margin-top: 10px; } .content-row{ display: flex; justify-content: space-between; flex-wrap: wrap; } .content-item{ width: 32.7%; box-sizing: border-box; border: 1px solid #C90303; margin-bottom: 10px; } .content-item h2{ height: 34px; line-height: 34px; background: url(../images/bg/bg-title.jpg) no-repeat; background-size: cover; color: #fff; font-size: 14px; padding: 0 12px 0 35px; } .content-item h2 a{ font-weight: normal; float: right; color: #C90303; } .content-item h2 a:hover{ color: #ff1111; } .content-wrap ul li{ height: 36px; line-height: 36px; margin: 0 10px; border-bottom: 1px dashed #ccc; } .content-wrap li p{ width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 8px; } /* 轮播 */ .swiper-pagination-bullet{ width: 16px; height: 16px; line-height: 16px; border-radius: 2px; font-size: 12px; text-align: center; } .swiper-pagination-bullet-active { color:#fff; background: #ff3300; } .swiper-container-horizontal>.swiper-pagination-bullets{ text-align: right; left: -8px; } .swiper-slide{ position: relative; } .swiper-slide img{ display: block; width: 100%; } .swiper-slide .swiper-title{ position: absolute; left: 0; bottom: 0; height: 34px; line-height: 34px; background-color: rgba(0,0,0,.6); color: #fff; padding: 0 125px 0 10px; box-sizing: border-box; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* 列表页 */ .content-list-wrap{ border: 1px solid #C90303; } .crumbs{ background-color: #C90303; color: #fff; } .crumbs a{ color: #fff; } /* 底部 */ .footer{ background-color: #C90303; } /* 响应式 */ @media screen and (max-width: 980px) { .header-nav ul{ height: auto; } /* flex布局,item元素补全 */ .header-nav ul::after{ content: ""; width: 50%; } .content-item{ width: 49.4%; } } @media screen and (max-width: 640px) { .header-img{ width: 100%; } .content-item{ width: 100%; } .content-item:nth-child(2){ order: -1; } }