本文介绍了如何使用负Z索引使链接可点击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在标题中使用了下拉菜单进行通知,但是当下拉打开后所有可见的div都打开时,我给出了 z-index 到所有div,但这些div上的链接现在无法单击!
I am using drop-down menu in my header for notification, but when drop down opens all the div's behind that are visible then I gave z-index to all the divs but the links on those div's are not clickable now!
下拉div CSS:
.drop-down{ overflow:scroll; overflow-x:hidden; }和后面的div是
#main-div{ z-index:-1; position:absolute; }推荐答案
我想是负面的 z-index 将链接置于下方。
I guess that the negative z-index places the links underneath the body.
使用正数 z-index ,例如元素后面的 10 和 20 应该放在前面的元素上。
Use a positive z-index, for example 10 on the element that should be at the back and 20 on the element that should be in front.
更多推荐
如何使用负Z索引使链接可点击?
发布评论