所以我有这个小提琴http://jsfiddle.net/speeedracer/CGucm/,当你把鼠标移到顶行的任何链接上时,你可以看到弹出的div在底行的列表元素下面。有人知道如何让它覆盖其他页面的内容吗?我把z-index调得很高,这样它就会出现在顶部,但它不起作用。
下拉框代码如下:enter code here.drop-box { display: none;position: static;width: 400px;height: 100px;z-index: 9999;background:#e8dfc2;}
*我知道我有一些视觉间隔问题,但我只需要一个工作样机,而不必是perfect...yet。
谢谢!
发布于 2013-10-22 00:45:47
z-index不能与position: static一起使用。这就好像你没有位置一样。
因此,更改您的position: absolute将解决您的问题,z-index将发挥作用。
https://stackoverflow.com/questions/19500186
复制相似问题