0
我有此位的jQuery:jQuery的 - 在鉻的mouseenter工作,但在Firefox中沒有
$('#list_cont').on('mouseenter', '.show_map', function() {
$(this).next('.map_cont').stop().fadeIn(800);
}).on('mouseleave', '.show_map', function() {
if (!$(this).next('.map_cont').is(':hover')) {
$(this).next('.map_cont').delay(600).stop().fadeOut(800);
}
});
$('#list_cont').on('mouseenter', '.show_map', function() {
$(this).stop().show();
}).on('mouseleave', '.map_cont', function() {
$(this).delay(600).stop().fadeOut(800);
});
這表明.map_cont
上.show_map
了mouseenter,那麼如果在.map_cont
盤旋,它沒有淡出,直到光標離開.map_cont
。
這適用於chrome,但不適用於Firefox。我不知道如何跨瀏覽器測試這種類型的東西。