.myToast { width: 100%; height: 100%; background: rgba(37, 37, 37, .8); position: absolute; top: 0; left: 0; z-index:999; } .toastBox { width: 600rpx; height: 250rpx; border-radius: 30rpx; background: #fff; position: absolute; left: 0; right: 0; margin: auto; top: 0; bottom: 0; padding: 37rpx 28rpx; box-sizing: border-box; } .line1 { /* display: flex; */ /* flex-direction: row; */ align-items: center; margin: 0 auto 20rpx; } .line2 { margin: 0 auto; } .myToastIcon { width: 26rpx; height: 26rpx; margin-right: 10rpx; } .line1Text { height: 40rpx; font-size: 32rpx; /* font-family: PingFangSC-Regular; */ /* font-weight: 400; */ color: red; line-height: 40rpx; text-align: center; display: block; } .line2Text { height: 40rpx; font-size: 32rpx; /* font-family: PingFangSC-Regular; */ /* font-weight: 400; */ color: rgba(37, 37, 37, 1); line-height: 40rpx; display: block; text-align: center; } .line3Text{ height: 40rpx; font-size: 32rpx; /* font-family: PingFangSC-Regular; */ /* font-weight: 400; */ color: rgba(37, 37, 37, 1); line-height: 166rpx; display: block; text-align: center; } .close-img{ width: 78rpx; height: 78rpx; position: absolute; left: 0; right: 0; margin: 38rpx auto 0; top: 60%; }