body{ color: #000; } a{ color: #000; } a:hover{ color: #ff1111; } .header-top{ background: url(../images/bg/bg-header-xsc.png) center; background-size: contain; } /* 导航 */ .header-nav{ background: url(../images/bg/bg-nav-xsc.jpg)repeat-x center; } .header-nav ul{ background-color: transparent; } .header-nav li a{ color: #FFFF00; height: 50px; line-height: 50px; } .header-nav li:hover a { background-color: #C90303; } .header-nav .nav-secondLevel li:hover>a { background-color: #FF4A4A; } /* 主体 */ .content{ margin-top: 15px; } .content-row{ display: flex; justify-content: space-between; flex-wrap: wrap; } .content-item{ width: 49.3%; box-sizing: border-box; margin-bottom: 15px; } .content-item h2{ height: 36px; line-height: 36px; font-size: 16px; } .content-item h2 a{ font-weight: normal; float: right; color: #fff; background-color: #C90303; padding: 0px 14px; font-size: 14px; } .content-item h2 a:hover{ color: #FFFF00; } .content-wrap ul li{ height: 36px; line-height: 36px; margin: 0 10px; /* border-bottom: 1px dashed #ccc; */ } .content-wrap li p{ width: calc(100% - 130px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; float: left; } .content-wrap .list-time { float: right; color: #999; } .content-wrap a:hover .list-time { color: #ff1111; } .content-tow-lines { flex-grow: 2; } .content-tow-lines ul{ display: flex; justify-content: space-between; flex-wrap: wrap; } .content-tow-lines li{ width: 48%; overflow: hidden; } /* 轮播 */ .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: #FFEAEC; border-top: 1px solid #C90303; } .footer-mesg{ background-color: #FFEAEC; color: #000; } /* 响应式 */ @media screen and (max-width: 1024px) { .content-tow-lines li{ width: 47%; } } @media screen and (max-width: 980px) { .header-nav{ background-repeat: repeat; background-position: left top; } .header-nav ul{ height: auto; } /* flex布局,item元素补全 */ .header-nav ul::after{ content: ""; width: 50%; } .content-item{ width: 49.4%; } } @media screen and (max-width: 768px) { .content-item{ width: 100%; } .content-tow-lines li{ width: 100%; } } @media screen and (max-width: 640px) { .header-img{ width: 100%; } .content-wrap li p{ width: calc(100% - 100px); } }