<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>鼠标移动到图片上,图片变大</title>
<style type="text/css">
div{
width:230px;
height:155px;
overflow:hidden;
}
div img{
cursor:pointer;
transition:all 0.6s;
}
div img:hover{
transform:scale(1.2);
}
</style>
</head>
<body>
<div><img src="images/25.png"></div>
</body>
</html>
css鼠标移到图片上,图片变大
最新推荐文章于 2022-08-04 17:06:03 发布