.offline-page { .offline-box { width: 100%; position: fixed; top: 50%; text-align: center; transform: translateY(-50%); } .offline-bg { height: 200px; width: 200px; background: url("https://cdn.yoho.cn/pwa/404.png") no-repeat; background-size: 100% 100%; display: inline-block; } .slogan { margin-top: 40px; } .refresh { width: 240px; margin-top: 40px; padding: 20px; border-radius: 4px; background-color: #444; color: #fff; } }