更換終於讓我找到一種方法來解決了這個問題。
$("#popup_survey_whitebox").hover(function() {
$('#popup_survey_whitebox_content').finish().animate({
opacity: 1,
height: "toggle"
}, 500, function() {
$("label#popup_survey_label_title").text(orig); // Here put the original text.
}).css('position', 'relative');
}, function() {
$('#popup_survey_whitebox_content').finish().animate({
opacity: 1,
height: "toggle"
}, 500, function() {
$("label#popup_survey_label_title").text(newText); // Here put the new text with "..."
}).css('position', 'relative');
});
變化$('#popup_survey_whitebox_content').stop()
到$('#popup_survey_whitebox_content').finish()
兩個動畫
問題? (我在FireFox和Chrome中測試--FireFox是OK) – demo
請給我你的完整代碼 –
@demo我測試過,FF和Chrome也有這個問題,有時會顯示有時推到底 –