鼠标滑过图片缩放:
<!DOCTYPE html><html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
div img{
width: 100px;
height: 100px;
border: #000 solid 1px;
margin: 50px auto;
overflow: hidden;
}
div img{
cursor: pointer;
transition: all 0.6s;
}
div img:hover{
transform: scale(1.4);
}
</style>
</head>
<body>
<div align="center">
<img src="img/ic_4.jpg" width="100px" />
</div>
</body>
</html>