.carousel { height: 700rpx; position: relative; } .carousel swiper { height: 100%; } .carousel .image-wrapper { width: 100%; height: 100%; } .carousel .swiper-item { display: flex; -webkit-box-pack: center; justify-content: center; align-content: center; height: 700rpx; overflow: hidden; } .carousel .swiper-item image { width: 100%; height: 100%; }