实现鼠标移入盒子上移
.moreBox {
width: 100%;
min-height: 400px;
padding: 50px;
font-size: 12px;
color: #666;
overflow: hidden;
display: flex;
flex-wrap: wrap;
ul {
margin: 0;
padding: 0;
width: 30%;
li {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
list-style: none;
margin: 0 10px 10px 0;
white-space: nowrap;
}
}
}
补充
transform: scale(1.1);//实现缩放
transition: all .6s;//时间长短
transform: translate(0, -6px);实现上滑动