From 34a670dae83d15fb20d62a9d3e60b643019221df Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Mon, 9 Dec 2024 21:22:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(mp):=20=E4=BF=AE=E5=A4=8D=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E7=AB=AFz-index=E7=A4=BA=E4=BE=8B=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=94=99=E4=BD=8D=E7=9A=84Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/CSS/layout/z-index.uvue | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pages/CSS/layout/z-index.uvue b/pages/CSS/layout/z-index.uvue index f4f7291f..ccab9ff8 100644 --- a/pages/CSS/layout/z-index.uvue +++ b/pages/CSS/layout/z-index.uvue @@ -75,27 +75,32 @@ .default { background-color: red; z-index: 10; + /* #ifndef MP */ top: var(--window-top); + /* #endif */ + /* #ifdef MP */ + top: 0px; + /* #endif */ } .specified { background-color: green; z-index: 5; left: 87px; - /* #ifdef APP */ + /* #ifdef APP || MP */ top: 87px; /* #endif */ - /* #ifdef H5 */ + /* #ifdef WEB */ top: calc(var(--window-top) + 87px); /* #endif */ } .floor { background-color: chocolate; - /* #ifdef APP */ + /* #ifdef APP || MP */ top: 250px; /* #endif */ - /* #ifdef H5 */ + /* #ifdef WEB */ top: calc(var(--window-top) + 250px); /* #endif */ left: 175px; @@ -103,10 +108,10 @@ } .popup { - /* #ifdef APP */ + /* #ifdef APP || MP */ top: 320px; /* #endif */ - /* #ifdef H5 */ + /* #ifdef WEB */ top: calc(var(--window-top) + 320px); /* #endif */ left: 87px; -- GitLab