[英]CSS HTML background image displaying over pop-up menu
I placed a background image in a class.我在 class 中放置了背景图像。 Now when I click the menu, and it transitions, it displays behind the background image.现在,当我单击菜单并进行转换时,它会显示在背景图像的后面。 Is there a way to make the background image less specific?有没有办法让背景图像不那么具体? or is there anything else i should be doing?或者还有什么我应该做的吗?
Thanks in advance.提前致谢。
Add z-index css property to your tag.将 z-index css 属性添加到您的标签。
.back-img {
z-index: 1000;
}
I had that problem before and I tried this.我之前遇到过这个问题,我试过这个。 It worked.有效。
.dropdown-content {
z-index: 1000;
}
Pop-up menu has dropdown-content class.弹出菜单具有下拉内容 class。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.