body{ color: #000; background-color: #e9f0f5; } a{ color: #000; } a:hover{ color: #ff1111; } .header-img{ padding: 10px 0; position: relative; } .header-img img{ width: auto; } .header-right{ position: absolute; top: 50%; right: 30px; transform: translateY(-50%); padding: 10px 15px 10px 40px; background: #e6e6e6 url(../images/icon/home.png) no-repeat 15px center; background-size: 18px; border-radius: 30px; color: #5C5C5C; } /* 导航 */ .header-nav{ background: url(../images/bg/bg-nav-rsc.jpg) repeat-x center; } .header-nav ul{ height: 40px; line-height: 40px; background-color: transparent; } .nav-secondLevel{ top: 40px; } .header-nav li { background: url(../images/bg/bg-nav-rsc-line.jpg) no-repeat center right; } .header-nav li:last-child{ background: none; } .header-nav li:hover a { background-color: rgba(0,101,169,.6); color: #fff; } .header-nav .nav-secondLevel li a{ border-color: #07ade7; } .header-nav li a{ position: relative; } .header-nav a i{ width: 0; height: 0; border: 6px solid transparent; border-bottom-color: #fff; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); opacity: 0; } .header-nav li:hover a i{ opacity: 1; } /* 主体 */ .content{ margin-top: 15px; } .content-row{ display: flex; justify-content: space-between; flex-wrap: wrap; } .content-item{ width: 33%; box-sizing: border-box; margin-bottom: 15px; padding: 10px; background-color: #fff; border-radius: 6px; box-shadow: 0 0 2px #777; } .content-item:nth-child(odd){ width: 66%; } .content-item h2{ height: 30px; line-height: 30px; font-size: 16px; background: url(../images/bg/bg-content-rsc.jpg) repeat-x center; background-size: contain; color: #fff; font-size: 14px; border-radius: 4px; overflow: hidden; padding: 0 15px; } .content-item h2 i{ font-style: normal; font-weight: normal; padding: 0 3px; } .content-item h2 span{ font-weight: normal; } .content-item h2 a{ font-weight: normal; float: right; color: #fff; } .content-item h2 a:hover{ color: #FF0000; } .content-item h2 a:hover .triangle{ border-left-color: #FF0000; } .content-item h2 .triangle{ display: inline-block; width: 0; height: 0; border: 7px solid transparent; border-left-color: #fff; vertical-align: middle; margin: -2px 0 0 2px; } .content-wrap ul li{ height: 36px; line-height: 36px; margin: 0 10px; border-bottom: 1px dashed #ccc; padding-left: 16px; background: url(../images/icon/img1.gif)no-repeat left center; } .content-wrap li p{ width: calc(100% - 130px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; float: left; } .content-item:nth-child(even) li p { width: calc(100% - 30px); } .content-item:nth-child(even) .list-time { display: none; } .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; } .content-item-swiper ul{ margin-left: 36%; margin-top: 5px; } /* 轮播 */ .content-item-swiper .swiper-container{ width: 35%; float: left; margin-top: 5px; } .swiper-pagination-bullet{ width: 22px; height: 18px; line-height: 18px; border-radius: 2px; font-size: 12px; text-align: center; background-color: rgba(0, 0, 0, .6); color: #fff; } .swiper-pagination-bullet-active { color:#fff; background: rgba(7, 173, 231, .8); } .swiper-container-horizontal>.swiper-pagination-bullets{ text-align: right; left: -3px; bottom: 3px; } .swiper-slide{ position: relative; } .swiper-slide img{ display: block; width: 100%; } .swiper-slide .swiper-title{ position: absolute; left: 0; top: 0; height: 26px; line-height: 26px; background-color: #07ade7; color: #fff; padding: 0 10px; box-sizing: border-box; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; } /* 列表页 */ .content-list-wrap{ border: 1px solid #1D60AE; background-color: #fff; } .crumbs{ background-color: #0085CA; color: #fff; } .crumbs a{ color: #fff; } /* 底部 */ .footer{ background: url(../images/bg/bg-foot-rsc.jpg); } .footer-mesg{ background-color: transparent; } .footer-link{ background-color: #C1D6E3; line-height: 36px; } .footer-link ul{ display: inline-block; } .footer-link ul li{ display: inline-block; margin-right: 15px; } .mobile-nav-icon span{ background-color: #07ade7; } .mobile-header-nav>ul{ background-color: #07ade7; } .mobile-header-nav>ul>li { background-color: #07ade7; } .mobile-header-nav li a { border-color: #21b5e8; } .mobile-header-nav .nav-secondLevel{ background-color: #2a8fb3; } .mobile-header-nav .nav-threeLevel { background-color: #6dbedc; } /* 响应式 */ @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: 100% !important; } .header-right{ right: 100px; } .header{ background-color: #e9f0f5; } .header-img{ padding: 0; } .header-img img{ padding: 10px 0; } } @media screen and (max-width: 768px) { .content-item{ width: 100%; } .content-tow-lines li{ width: 100%; } /* 轮播 */ .content-item-swiper .swiper-container{ width: 100%; float: inherit; } .content-item-swiper ul{ margin-left: 0; } } @media screen and (max-width: 640px) { .header-img{ width: 100%; } .content-wrap li p{ width: calc(100% - 100px); } .header-right{ display: none; } }