<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>css3鼠标悬浮放大效果</title>
<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
<style>
.imgBox {
width: 365px;
height: 223px;
overflow:hidden;
}
.imgBox img {
transition:all .4s;
-moz-transition:all .4s;
-webkit-transition:all .4s;
-o-transition:all .4s;
}
.imgBox img:hover {
transform:scale(1.2);
}
</style>
</head>
<body>
<div class="imgBox">
<img src="http://dev.ixincheng.com/xcview/images/xianxia_03.jpg" alt="">
</div>
</body>
</html>
|