/* packageF/pages/free_delivery/free_delivery.wxss */ .free_delivery{ width: 100%; min-height: 100vh; padding-bottom:25.6rpx; box-sizing: border-box; /* display: flex; flex-direction: column; justify-content: space-between; */ background-position: 50%; background-repeat: no-repeat; background-attachment: fixed; background-size: 100% 100%; position: relative; } .top{ padding: 50rpx 0 0 40rpx; /* width: 100%; height: 483rpx; display: flex; align-items: center; justify-content: center; */ } .main{ /* position: absolute; left: 0; top: 24.5%; */ width: 670rpx; margin: 100rpx auto 20rpx; /* height: 200rpx; background-color: red; */ /* opacity: .5; */ display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: rgba(255, 255, 255, .5); padding-bottom: 25.6rpx; border-radius: 30rpx; /* opacity: .5; */ /* width: 100%; flex: 1; display: flex; align-items: center; justify-content: center; background-color: darkmagenta; */ } .main .imageBox{ width: 100%; height: 344.4rpx; position: relative; /* background-color: royalblue; */ } .main .imageBox image{ position: absolute; top: -140rpx; left: 0; right: 0; margin: auto; } .main_title{ margin: 25rpx 0; } .main .main_title , .main .but{ background-position: 50%; background-repeat: no-repeat; background-attachment: fixed; background-size: 100% 100%; position: relative; border: 1rpx solid rgb(194, 194, 194); border-radius: 15rpx; overflow: hidden; text-align: center; line-height: 80rpx; } .but{ font-weight: bold; } .bottom{ width: 670rpx; margin: 0 auto; /* position: absolute; left: 0; bottom: 5%; */ background-color: rgba(255, 255, 255, .5); padding: 50rpx 0; border-radius: 30rpx; display: flex; align-items: center; justify-content: center; }