<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
div{
width: 300px;
height: 300px;
border: #000 solid 1px;
margin: 50px auto;
overflow: hidden;
}
div img{
cursor: pointer;/*手*/
transition: all 0.6s;
}
div img:hover{
transform: scale(1.5);
}
</style>
</head>
<body>
<div>
<img src="4.jpg" width="300px" height="300px"/>
</div>
</body>
</html>
鼠标悬浮图片变大
猜你喜欢
转载自blog.csdn.net/qq_32295383/article/details/81348236
今日推荐
周排行