【发布时间】:2013-10-31 22:41:44
【问题描述】:
我的 div 在悬停和悬停时会在高度上增长,我希望它们与所有其他 div 重叠,而不是像我的示例中那样推动它们。
#container{
width: 300px;
}
#container a div{
float:left;
width: 100px;
height: 60px;
-webkit-transition: all 0.25s ease;
}
#container .color1{
background: #444;
}
#container .color2{
background: #555;
}
#container .color3{
background: #666;
}
#container .color4{
background: #777;
}
#container .color5{
background: #888;
}
#container a div:hover{
height: 80px;
-webkit-transition: all 0.25s ease;
}
【问题讨论】: