.wx-toast-box { display: flex; width: 100%; justify-content: center; position: fixed; z-index: 999; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0; } .wx-toast-content { width: 226rpx; min-height: 174rpx; background: rgba(0, 0, 0, 0.8); border-radius: 8rpx; padding: 30rpx; } .wx-toast-toast { height: 100%; width: 100%; color: #fff; font-size: 28rpx; text-align: center; } .icon { width: 80rpx; height: 80rpx; display: block; margin:15rpx auto; }