.mobile-nav-icon{ width: 25px; position: absolute; top: calc(50% + 3px); right: 30px; transform: translateY(-50%); cursor: pointer; display: none; } .mobile-nav-icon span{ display: block; width: 100%; height: 3px; background-color: #fff; margin-bottom: 6px; transition: all .1s; } .nav-icon-active span{ transform:rotate(-45deg); } .nav-icon-active span:first-child{ transform:rotate(45deg) translate(6px,6px); } .nav-icon-active span:last-child{ display: none; } /* 导航 */ .mobile-header-nav{ font-weight: bold; overflow-y: auto; position: absolute; top: 0; right: -100%; width: 100%; text-align: right; opacity: 0; z-index: 10000000; display: none; } .mobile-header-nav>ul{ width: 50%; height: 100%; background-color: #C90303; float: right; } .mobile-header-nav>ul>li{ background-color: #C90303; } .mobile-header-nav li{ position: relative; } .mobile-header-nav span{ margin-left: 10px; float: left; transform: rotate(180deg); } .mobile-header-nav .nav-secondLevel{ width: 100%; position: absolute; top: 0; left: -95%; text-align: center; display: none; } .mobile-header-nav .nav-threeLevel{ width: 100%; position: relative; top: 0; left: 0; display: none; } .mobile-header-nav>ul>li:hover .nav-secondLevel, .mobile-header-nav li:hover .nav-threeLevel{ display: none; } .mobile-header-nav .nav-secondLevel{ background-color: #ff1111; } .mobile-header-nav .nav-threeLevel{ background-color: #f55555; } .mobile-header-nav li a{ display: block; height: 50px; line-height: 50px; color: #fff; padding: 0 20px; border-bottom: 1px solid #D20000; } .mobile-header-nav .nav-threeLevel li{ width: 100%; } .mobile-header-nav .nav-threeLevel li a{ border: none; padding: 0; } @media screen and (max-width: 1200px) { .wrap{ width: 98%; } } @media screen and (max-width: 1024px) {} @media screen and (max-width: 980px) { .header{ position: relative; } .mobile-nav-icon,.mobile-header-nav{ display: block; } .header-img{ position: relative; } /* 导航 */ .header-nav{ display: none; } } @media screen and (max-width: 768px) { .wrap{ width: 95%; } /* 两列列表页 */ .content-part{ flex-wrap: wrap; } .content-left{ width: 100%; margin-right: 0; } .content-left-list{ display: flex; flex-wrap: wrap; } .content-left-list li{ width: 50%; } .list-pic .content-img-list li{ width: 50%; } } @media screen and (max-width: 640px) { .header { position: fixed; top: 0; left: 0; z-index: 1000; width: 100%; } .header-img{ height: 70px; overflow: hidden; } .header-img img{ width: auto; height: 100%; } .mobile-nav-icon{ /* right: 18px; */ } .content{ margin-top: 80px !important; } .footer-mesg span{ display: block; } /* 列表页 */ .crumbs{ padding: 0 20px; } .list-wrap li{ padding: 0 20px; } .list-wrap .list-title{ width: calc(100% - 100px); overflow: auto; } .content-img-list{ flex-wrap: wrap; } .content-img-list li { width: 100% !important; } .list-pic .content-img-list li a{ margin: 0; } /* 正文 */ .article-main{ margin-top: 28px; } .article-title{ margin: 20px 0; } .article-mesg{ line-height: 26px; } } @media screen and (max-width: 375px) {} @media screen and (max-width: 360px) {}