css鼠标移入图片放大
.humanbox_imgson {
position: absolute;
width: 90%;
top: 5%;
left: 5%;
border-radius: 20vw;
overflow: hidden;
}
.humanbox_imgson:hover img {
transform: scale(1.2);
/* 此时图片会超出盒子显示
在div中加overflow: hidden; */
}
.humanbox_imgson img {
width: 100%;
height: 100%;
border-radius: 20vw;
transition: all 0.3s;
}

浙公网安备 33010602011771号