body{ color: #000; } a{ color: #000; } a:hover{ color: #ff1111; } .header{ background: url(../images/bg/bg-header-ztw.gif) repeat-x; } .header-img{ position: relative; } .header-img img{ width: auto; margin: 0 auto; } /* 导航 */ .header-nav{ background-color: #A51C21; } .header-nav ul{ height: 50px; line-height: 50px; } .header-nav ul li{ background-color: #A51C21; } .nav-secondLevel{ top: 50px; } .header-nav li a{ position: relative; height: 50px; line-height: 50px; font-size: 16px; } .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: 49.2%; box-sizing: border-box; margin-bottom: 15px; border: 1px solid #AF1D34; } .content-item h2{ height: 38px; line-height: 38px; font-size: 16px; background: url(../images/bg/bg-title-ztw.jpg) repeat-x center; background-size: contain; color: #fff; font-size: 14px; 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-wrap ul{ padding: 3px 0 10px; } .content-wrap ul li{ height: 36px; line-height: 36px; margin: 0 10px; border-bottom: 1px dashed #ccc; padding-left: 16px; background: url(../images/icon/arrow01.gif)no-repeat left center; } .content-wrap li p{ width: calc(100% - 80px); 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-list-wrap{ border: 1px solid #A51C21; } .crumbs{ background-color: #A51C21; color: #fff; } .crumbs a{ color: #fff; } /* 底部 */ .footer{ background-color: #A51C21; } .footer-mesg{ background-color: transparent; } /* 响应式 */ @media screen and (max-width: 1024px) { .header-img img{ width: 100%; } } @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; } } @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-top{ display: none; } .header-img{ width: 100%; height: 100px; } .header-img img{ width: auto; } .content-wrap li p{ width: calc(100% - 100px); } .header-right{ display: none; } .content{ margin-top: 110px !important; } }