From aaa4a1f1fb55f735215a160306d33c639550b994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Mon, 3 Jul 2023 14:14:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E8=BE=B9=E8=B7=9D=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/index.module.scss | 4 ++++ src/pages/study/index.module.scss | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/pages/index/index.module.scss b/src/pages/index/index.module.scss index 83d0c52..19a3fe6 100644 --- a/src/pages/index/index.module.scss +++ b/src/pages/index/index.module.scss @@ -119,6 +119,10 @@ text-align: left; overflow-x: hidden; overflow-y: auto; + padding-bottom: calc( + 55px + constant(safe-area-inset-bottom) + ); /* 兼容iOS 11.0 - 11.2 */ + padding-bottom: calc(55px + env(safe-area-inset-bottom)); /* 兼容iOS 11.2+ */ .item { width: 100%; float: left; diff --git a/src/pages/study/index.module.scss b/src/pages/study/index.module.scss index 9f6c66c..8b3df06 100644 --- a/src/pages/study/index.module.scss +++ b/src/pages/study/index.module.scss @@ -17,6 +17,10 @@ text-align: left; overflow-x: hidden; overflow-y: auto; + padding-bottom: calc( + 80px + constant(safe-area-inset-bottom) + ); /* 兼容iOS 11.0 - 11.2 */ + padding-bottom: calc(80px + env(safe-area-inset-bottom)); /* 兼容iOS 11.2+ */ .label { width: 100%; height: 40px;