【发布时间】:2012-12-26 18:45:08
【问题描述】:
这是我的代码:
'$(".hoverfront").mouseenter(function () {'
var elem = $(this);
elem.flip({
direction: 'lr',
color: 'red',
speed: 700,
content: $(".description"),
onBefore: function(){
$(this).removeClass('hoverfront');
$(this).addClass('back');
}
});
}).mouseleave(function () {
$(".back").revertFlip();
});
http://jsfiddle.net/mornaistar/eHfUa/
我的点击事件运行良好,但我的悬停事件只是让我头疼,我做错了什么?
【问题讨论】: