gpt4 book ai didi

html - Bootstrap 下拉菜单 - 在正文中显示在照片下方

转载 作者:太空宇宙 更新时间:2023-11-03 18:04:33 24 4
gpt4 key购买 nike

我在 Joomla 中使用 JB DropDown Menu for Bootstrap 模块。

但是,当有照片时,我可以使用下拉菜单。菜单显示在图像下方。即。)阻止下拉菜单。目前这种情况发生在 Chrome 和 Safari 中。

更新一-
文章/照片 css 上没有 relative 或 z-index

左侧的下拉菜单部分

#_break ul{
z-index:1000;
}

------------ 结束更新一-----

(旧代码)右边的照片部分

body.menu-events-and-activities article.post-45{
z-index: 2;
position: relative;
}

左侧的下拉菜单部分

#_break ul{

z-index:1;
background-color: yellow;
}

enter image description here

最佳答案

你必须尝试一些比 z-index 更高的东西,比如 1000。

请尝试将 z-index 添加到 ul 或 li 之前的 div 以查看它是否得到修复。

关于html - Bootstrap 下拉菜单 - 在正文中显示在照片下方,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24938656/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com