提交 3a6694a0 编写于 作者: 雪洛's avatar 雪洛

test: 增加页面末尾z-index测试例

上级 1c5f5180
...@@ -27,6 +27,14 @@ ...@@ -27,6 +27,14 @@
<text>z-index: 0</text> <text>z-index: 0</text>
</view> </view>
</view> </view>
<view>
<view>
<view class="common fixed popup" style="background-color: aqua;z-index: 5;">
<text>position: fixed</text>
<text>z-index: 5</text>
</view>
</view>
</view>
</view> </view>
</template> </template>
...@@ -84,4 +92,15 @@ ...@@ -84,4 +92,15 @@
left: 175px; left: 175px;
z-index: -1; z-index: -1;
} }
.popup {
/* #ifdef APP */
top: 320px;
/* #endif */
/* #ifdef H5 */
top: calc(var(--window-top) + 320px);
/* #endif */
left: 87px;
height: 40px;
}
</style> </style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册