css鼠标滑过图片,图片变大
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<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;
width: 300px;
height: 300px;
}
div img:hover{
transform: scale(1.4);
}
</style>
</head>
<body>
<div>
<img src="http://www.qianduanzhan.com/zb_users/upload/2017/07/201707161500184837405094.png" />
</div>
</body>
</html>