.myToast { width: 100%; height: 100%; background: rgba(37, 37, 37, .6); position: absolute; top: 0; left: 0; } .toastBox { width: 600rpx; height: 274rpx; border-radius: 8rpx; background: #fff; position: absolute; left: 0; right: 0; margin: auto; top: 0; bottom: 0; padding: 86rpx 0 0 80rpx; 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: 28rpx; font-family: PingFangSC-Regular; font-weight: 400; color: rgba(37, 37, 37, 1); line-height: 40rpx; } .line2Text { height: 40rpx; font-size: 28rpx; font-family: PingFangSC-Regular; font-weight: 400; color: rgba(37, 37, 37, 1); line-height: 40rpx; }