質問
私のhtml
<div id="parent">
<div id="child">cx</div>
</div>
ご利用する場合は、jquery
$('#parent').mouseout(function(){
//something here
});
なぜか自分のマウス入力の児童部門の機能です。まだ内親div.いるmouseout機能のみを出るときに親divながんの子の部
乾杯
解決
このはmouseleave
イベントが何のためにあるのかである。
$('#parent').mouseleave(function(){
//something here
});
他のヒント
.mouseleave
完全にここに動作します:
$("#parent").mouseleave(function(){
//Enter stuff that should happen when mouse leaves
//the boundaries of the parent element
// NOT including the children
});
子要素マウスオーバーで.mouseout
火災!
があるように見えるビットの差のmouseout、mouseoverます。jimyiは、正しいソリューションの問題、そう思ってやってきましたが追加リンクでご提供しています。
所属していません StackOverflow