用javascript怎么做一个鼠标放到图片上有个放大效果
下面是代码:
- $(".ceshi_pic li span img").hover(function() {
- $(this).css("transition", "width 0.5s, height 0.5s");
- $(this).css("width", "120%");
- $(this).css("height", "120%");
- }, function() {
- $(this).css("transition", "width 0.5s, height 0.5s");
- $(this).css("width", "100%");
- $(this).css("height", "100%");
- });
复制代码
|