【发布时间】:2011-08-11 19:30:11
【问题描述】:
我的代码在下面运行良好,但我还想将图像向下移动 10 像素,然后在鼠标移出时再次返回,并将不透明度恢复为 0.7。
$('#drinksList section a img').load(function() {
$(this).data('height', this.height);
}).bind('mouseenter mouseleave', function(e) {
$(this).stop().animate({
opacity: 1,
height: $(this).data('height') * (e.type === 'mouseenter' ? 1.05 : 1)
});
});
任何帮助将不胜感激。
【问题讨论】:
标签: jquery