Please check the picture first我有8图片在4列和2行,基本上我想要的是以下内容:当在第一行中悬停2图片只有2图片应移动2行转型不是整个行。谢谢!转换发生时的图片CSS
.primary,
.secondary,
.third,
.fourth,
.fifth,
.sixth,
.seventh,
.eight{
float: left;
width: 300px;
height: 420px;
margin-top: -90px;
margin-left: 60px;
overflow: hidden;
font-size: 0.9em;
text-align: center;
display: block;
border-radius: 10px;
box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
-moz-box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
-webkit-box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
-webkit-transition: height 2s;
transition: height 2s;
}
.eight:hover,
.seventh:hover,
.sixth:hover,
.fifth:hover,
.fourth:hover,
.third:hover,
.secondary:hover,
.primary:hover {
float: left;
display: block;
height: 550px;
}
请问你的HTML看看吗?你能提供那个吗? – Adjit
如果你有行,并且你让行中的元素更大......当然它会推动下一行,你还期望什么? –
请提供一些HTML到这个小提琴,并将其添加到您的问题:https://jsfiddle.net/wp9uj9o8/ –