1.html部分
<div>
<img src="ss.png"/>
</div>
2.css部分
div {
width:300px;
height:200px;
overfolow: hidden;
}
img {
width:100%;
height:100%;
transition: transform 1s;
transform: scale(1);
display:block;
}
img:hover {
transform: scale(1.1);
}
鼠标放入图片缩放放大过度效果
最新推荐文章于 2021-04-27 18:42:39 发布