先看代码
<script> $(function() { $('div').mouseover(function() { $('img').animate({ opacity: '0.9', width: '120%', height: '120%', left:"-10%" }); }); $('div').mouseout(function() { $('img').animate({ opacity: '1.0', width: '100%', height: '100%', left:"0%" }); }); }) </script>
不知道,大神们还有更加好的方法方式么?