/* static/nativeComponents/PhotoGallery/index.wxss */ @import "/static/font/common_icon.wxss"; .photo-gallery{ width: 100%; font-size: 32rpx; box-sizing: border-box; } .textH{ text-align: center; font-weight: bold; } .imgcontent{ width: 100%; text-align: center; } .imgcontent image{ width: 100%; display: block; } .across { position: relative; } .ul{ overflow-x: auto; white-space: nowrap; width: 100%; } .ul .li{ display: inline-block; flex: 1 } .ul .li image{ width: 100%; vertical-align: middle; } .prev-btn,.next-btn{ width: 60rpx; height: 60rpx; position: absolute; top: 50%; margin-top: -30rpx; z-index: 99; opacity: .3; } .prev-btn i,.next-btn i { font-size: 60rpx; } .next-btn{ right:10rpx; } .prev-btn{ left:10rpx; -webkit-transform: rotate(180deg); transform: rotate(180deg) }