/* swiper 版本 */ .swiper-bg{ background-color: #F1F1F1; display:block; #top-banner{ width: 100% !important; height: 100% !important; background-color: #F1F1F1; margin-left: auto; margin-right: auto; max-width: 1310px; .swiper-wrapper-top-banner{ width: 100%; height: 100%; padding-top: 12px; padding-bottom: 24px; max-width: 1310px; } .img-wrapper{ background-color: #F1F1F1; display: flex; width: 100%; height: 100%; justify-content: center; align-items: center; } .swiper-zoom-container{ width: 100%; height: 100%; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; text-align: center; img{ width: 100%; height: 100%; max-width: 1310px; max-height: 300px; object-fit: contain; } } .swiper-scrollbar-top-banner{ position:absolute; bottom:21px; left:0; width:100%; -webkit-box-sizing:border-box; box-sizing:border-box; display:-webkit-box; display:-ms-flexbox; display:flex; z-index:10; } .carouselPrimary-bullet{ position: relative; width: 100%; height:3px; background-color: rgba(0,0,0,.1); -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; transform: translateX(-1px); } .carouselPrimary-bullet:after{ content:""; background:#EE7800; position:absolute; width:0; height:100%; left:0; top:0; } .carouselPrimary-bullet--active:after{ width:0; -webkit-animation-name:progress; animation-name:progress; -webkit-animation-duration:4s; animation-duration:4s; -webkit-animation-timing-function:linear; animation-timing-function:linear; } .swiper-button-prev, .swiper-button-next{ width: 23px; height: 40px; } .swiper-button-prev{ left: 15px; } .swiper-button-next{ right: 15px; } .swiper-button-prev:after{ content:''; width: 23px; height: 40px; background: url("../../images/section/icon/top-banner/btn-prev.png") no-repeat ; background-position: center; display: inline-block; } .swiper-button-next:after{ content:''; width: 23px; height: 40px; background: url("../../images/section/icon/top-banner/btn-next.png") no-repeat ; background-position: center; display: inline-block; } .swiper-button-next:after, .swiper-button-prev:after{ font-size: 23px; } .swiper-scrollbar-drag{ background: #EE7800; } } .ADclose { width: 50px; height: 30px; position: absolute; top: 0; right: 20px; background-color: rgba(255,255,255,0.66); border-radius: 0 0 50px 50px; box-shadow: 0 0 10px rgba(32,32,32,0.25); display: flex; flex-direction: column; align-items: center; z-index: 3; &:hover{ cursor: pointer; } p{ font-size: 12px; color: #888; text-align: center; margin-top: 8px; } .arrow { position: absolute; left: 16px; top: 0; opacity: 1; &::before, &::after{ display: block; } } } } @-webkit-keyframes progress{ 0% { width:0; } to { width:100%; } } @keyframes progress{ 0% { width:0; } to { width:100%; } } //slick 版本 .slick-bg{ background-color: #F1F1F1; display:block; padding-top: 12px; padding-bottom: 24px; max-height: 336px; #top-banner{ width: 100% !important; height: 100% !important; background-color: #F1F1F1; margin-left: auto; margin-right: auto; max-width: 1310px; .slider{ height: 300px; } img { display: block; width: 100%; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; } .progress { display: block; // width: 100%; width: 98%; margin-left: auto; margin-right: auto; height: 5px; border-radius: 10px; // overflow: hidden; transform: translateY(5px); background-color: #f5f5f5; background-image: linear-gradient(to right, #EE7800, #EE7800); background-repeat: no-repeat; background-size: 0 100%; transition: background-size .4s ease-in-out; } .slick-prev { left: 30px; } .slick-next { right: 30px; } .slick-next, .slick-prev{ width: 23px; height: 40px; z-index: 99; } .slick-prev:before { content:''; width: 23px; height: 40px; background: url("../../images/section/icon/top-banner/btn-prev.png") no-repeat ; background-position: center; display: inline-block; } .slick-next:before { content:''; width: 23px; height: 40px; background: url("../../images/section/icon/top-banner/btn-next.png") no-repeat ; background-position: center; display: inline-block; } } .ADclose { width: 50px; height: 30px; position: absolute; top: 0; right: 20px; background-color: rgba(255,255,255,0.66); border-radius: 0 0 50px 50px; box-shadow: 0 0 10px rgba(32,32,32,0.25); display: flex; flex-direction: column; align-items: center; z-index: 3; &:hover{ cursor: pointer; } p{ font-size: 12px; color: #888; text-align: center; margin-top: 8px; } .arrow { position: absolute; left: 16px; top: 0; opacity: 1; &::before, &::after{ display: block; } } } }