diff --git a/pages/CSS/layout/z-index.uvue b/pages/CSS/layout/z-index.uvue index f4f7291f12a2fc93884acee660e36383f1ed7dc2..ccab9ff8a7344ee0b00ceab64774d769cbaf7c05 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;