我有一個鼠標懸停功能的問題,我有一個div,當它懸停在它上面時,它的子div被淡入,並在mouseleave上淡出。小孩的div顯示得很好,但是當你將鼠標移動到另一個時,它會一直出現,並且只是令人煩惱。
這裏有一個小提琴:http://jsfiddle.net/NK2mt/1/和我的jQuery的功能在這裏太:jQuery鼠標懸停功能保持閃爍
jQuery(document).ready(function(){
jQuery(".hover").hide();
jQuery('.grid-block').mouseover(function() {
jQuery(this).children('.hover').stop(true, true).fadeIn();
});
jQuery('.grid-block').mouseout(function() {
jQuery(this).children('.hover').stop(true, true).fadeOut();
});
return false;
});
它,當你在.block-text-sub
的DIV淡出,並在再次移動鼠標,但我似乎無法找到它的修復。