.modal { width: 100%; height: 100%; position: fixed; top: 0; left: 0; background: rgba(0, 0, 0, 0.5); overflow: hidden; z-index: 10000; color: #fff; } .modal-content { width: 540rpx; height: 233rpx; line-height: 60rpx; overflow: hidden; position: fixed; top: 50%; left: 0; z-index: 11; background: #f9f9f9; margin: -130rpx 105rpx; border-radius: 36rpx; display: flex; } .modal-content view { display: inline-block; flex: 1; text-align: center; } .modal-content view>text { color: #000; display: block; font-size: 30rpx; height: 80rpx; line-height: 80rpx; } .modal-content view>image { margin-top: 30rpx; width: 90rpx; height: 90rpx; }