작동하지 않습니다 애니메이션 : 그것은 잘 작동하지만, 파이어 폭스에서jQuery.animate()와() IE7에서 콜백이 코드가
var items = jQuery('#main .imgteaser .txtwrap');
items.css("opacity","0.8");
items.mouseenter(function(){
alert('enter');
jQuery(this).animate({
bottom: "0",
opacity: 1,
border: "1px solid #a6a6a6"
}, 500, function(){alert('enter animation ready');});
jQuery(this).addClass('hover');
});
items.mouseleave(function(){
alert('leave');
jQuery(this).animate({
bottom: "-60",
opacity: 0.8,
border: "1px solid #fff"
}, 500, function(){alert('leave animation ready');});
jQuery(this).removeClass('hover');
});
가 IE7에서 휴가 jQuery를 애니메이션이 작동하지 않습니다 및 콜백 함수도 작동하지 않습니다.
실제 코드입니까? (* copy/pasted? *) 그렇다면,'console.log'를 주석 처리하십시오. 또한, 온라인에 뭔가를 넣을 수 있다면 (* 또는 HTML도 보여줄 수 있습니다.) 많은 도움이 될 것입니다. –
경고 할 console.log를 변경했습니다. –
** leave ** 함수 (* 콜백 *)에서 경고 뒤에 닫는 괄호'}'가 없습니다. –