[英]Bootstrap navbar dropdown list hides behind html select option
The problem is that I have a select option list in my body just below the bootstrap navbar, and the problem occur when I open select list and the hover over navbar to open its dropdwon, I have tried this solution but it didn't work for me. 问题是我的引导程序导航栏正下方有一个选择选项列表,当我打开选择列表并将鼠标悬停在导航栏上以打开其dropwwon时出现了问题,我尝试了此解决方案,但不适用于我。
.select-style {
width: 100%;
height: 40px;
padding-left: 10px;
background-image: url(/getmedia/f5d6e976-be64-4f97-b0bf-b4bb2c9ddf15/Dropdown.aspx);
background-repeat: no-repeat;
background-size: 12px;
background-position: 96% center;
}
.select-style {
border: 1px solid #ececec;
font-size: 15px;
font-family: arialRegular;
}
.select-style { z-index:initial; }
您必须给navbar父类z-index多个选择,并尝试以减号givr z-index进行选择
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.