【问题标题】:How in the world do I get this div in front [closed]我到底怎么把这个div放在前面[关闭]
【发布时间】:2021-02-10 17:19:46
【问题描述】:

我的网站 zaczess.se/v2/

菜单购物车,当您打开它时,它会出现在一些小部件的后面,例如 instagram 帖子和评论。我现在尝试将 z-index 放在各种 div 上,但它不起作用。

有什么建议吗?This is how it looks like

.elementor-menu-cart__main {
z-index: 500;
position: fixed;
top: 0;
right: 0;
bottom: 0;
width: 350px;

【问题讨论】:

  • 我很难重现这个问题,因为我不知道问题出在哪里。这是一个用 wordpress 构建的网站,所以除了 CSS 部分,我没有做任何编码。
  • 从#sb_instagram #sbi_images.sbi_carousel 和.swiper-wrapper 中删除z-index: 1;。

标签: html css wordpress


【解决方案1】:
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;
}

这应该会有所帮助。代码设置购物车菜单下方的部分

【讨论】:

    猜你喜欢
    • 2020-07-07
    • 2013-03-23
    • 2021-07-14
    • 2017-07-31
    • 1970-01-01
    • 2021-12-22
    • 2018-01-27
    • 2020-11-15
    • 2017-03-10
    相关资源
    最近更新 更多