Jquery 为什么该div的z指数高于model(colorbox)?

Jquery 为什么该div的z指数高于model(colorbox)?,jquery,css,colorbox,Jquery,Css,Colorbox,我试图让一个div显示,即使是在模态(colorbox)打开的情况下。我所做的是为它设置了一个更高的z指数,但是我没有运气。有什么想法吗 代码: 非常感谢大家:)div元素位置的默认值为“static”。除非在CSS中将此值更改为相对或绝对等,否则z索引不适用 .facebooklike { background-image: url(images/likebackground.png); width: 230px; overflow:hidden; heig

我试图让一个div显示,即使是在模态(colorbox)打开的情况下。我所做的是为它设置了一个更高的z指数,但是我没有运气。有什么想法吗

代码:



非常感谢大家:)

div元素位置的默认值为“static”。除非在CSS中将此值更改为相对或绝对等,否则z索引不适用

.facebooklike {
    background-image: url(images/likebackground.png);
    width: 230px;
    overflow:hidden;
    height: 70px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    position: relative;
    z-index: 9999;
}

div元素位置的默认值为“static”。除非在CSS中将此值更改为相对或绝对等,否则z索引不适用

.facebooklike {
    background-image: url(images/likebackground.png);
    width: 230px;
    overflow:hidden;
    height: 70px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    position: relative;
    z-index: 9999;
}
.facebooklike {
    background-image: url(images/likebackground.png);
    width: 230px;
    overflow:hidden;
    height: 70px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    z-index: 9999;
.facebooklike {
    background-image: url(images/likebackground.png);
    width: 230px;
    overflow:hidden;
    height: 70px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    position: relative;
    z-index: 9999;
}