$('#closecallout').click(function() {
$('.callout').animate({"right" : "-260px"}, 500).addClass('calloutclosed');
});
$('.calloutclosed').hover(function() {
$(this).animate({"right" : "0px"}, 500);
}, function() {
$(this).animate({"right" : "-260px"}, 500);
});
點擊函數是爲了'隱藏'標註框,然後在徘徊時,它會回到焦點。addClass()添加類後的jQuery函數
爲什麼懸停功能不起作用?是否因爲這些都在jQuery(function($){ });
之內?
我應該採取哪些措施來糾正此問題?
非常感謝SO
在Chrome中竊聽。所有的時間收益和開放... –
@NorbertPisz這是什麼意思? – Musa
嘗試多次盤旋和取消快速切換並觀察效果。 –