我试图在激活.slidetoggle面板后按下框。但是发生的事情是,它要么超过或低于(取决于z位置)定位的盒子。我想这样做,以便当滑动切换面板被激活时,它将按下所有框。
以下是JSFIDDLE: http://jsfiddle.net/iqab/8QHdB/3/
以下是我所讨论的功能类型的示例: http://www.michaelnagy.at/
答案 0 :(得分:0)
用这个替换CSS。修改后的行被注释 应用了其他修复程序(请参阅CSS中的注释)。
.wrapper{
width:800px;
/*height:800px;*/ /*let wrapper auto resize itself based on contents height*/
border:solid thin #000;
position:relative;
margin:auto;
}
.wrapper .Boxes{
display:inline-block; /*fix for box overlap out of wrapper. replacement for "float:left" below*/
width:200px;
height:200px;
/*float:left;*/ /*fix for box overlap out of wrapper. replaced with "display:inline-block" above*/
border:solid thin #000;
margin:33px;
}
.wrapper .hbox{
width:734px;
height:400px;
border:solid thin #100;
/*position:absolute;*/ /*fix for panel overlap over boxes*/
top:33px;
margin:33px;
display:none;
background-color: #000;
}