我正在尝试将div元素放在jQuery Tools Scrollable图片库上。我已经以正确的方式放置了所有内容,但是即使我设置z-index,div也不会出现在jQuery对象的顶部:2。这是我的代码:
div#wrapperContainer{
display: table;
overflow: hidden;
margin: -5px auto;
}
//this is the div i'm trying to put on top of the jQuery Tool
div#wrapper {
display: table-cell;
vertical-align: middle;
z-index: 2;
width: 1024px;
height: 192px;
background-color: #525252;
-moz-box-shadow: 0px -10px 50px #000;
-webkit-box-shadow: 0px -10px 50px #000;
box-shadow: 0px -10px 50px #000;
}
//this is the CSS for the jQuery Tool
.scrollable {
position: relative;
overflow: hidden;
width: 940px;
height: 528px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
-khtml-border-radius: 10px;
border-radius: 10px;
}
.items {
width: 20000em;
clear: both;
position: absolute;
}
.items div{
float: left;
width: 940px;
height: 528px;
}