html - 我到底怎么把这个 div 放在前面
问题描述
我的网站 zaczess.se/v2/
菜单车,当你打开它时,它会出现在一些小部件的后面,比如 instagram 帖子和评论。我现在尝试将 z-index 放在各种 div 上,但它不起作用。
有小费吗?这是它的样子
.elementor-menu-cart__main {
z-index: 500;
position: fixed;
top: 0;
right: 0;
bottom: 0;
width: 350px;
解决方案
section.elementor-section.elementor-top-section.elementor-element.elementor-element-d1db9ee.elementor-section-boxed.elementor-section-height-default.elementor-section-height-default {
z-index: 0 !important;
}
section.elementor-section.elementor-top-section.elementor-element.elementor-element-b9a071e.elementor-section-boxed.elementor-section-height-default.elementor-section-height-default {
z-index: 0 !important;
}
这应该会有所帮助。代码设置购物车菜单下方的部分