質問

私のhtml

<div id="parent">
<div id="child">cx</div>
</div>

ご利用する場合は、jquery

 $('#parent').mouseout(function(){
//something here
});

なぜか自分のマウス入力の児童部門の機能です。まだ内親div.いるmouseout機能のみを出るときに親divながんの子の部

http://jsbin.com/esiju/ << 例

乾杯

役に立ちましたか?

解決

このはmouseleaveイベントが何のためにあるのかである。

$('#parent').mouseleave(function(){
//something here
});

http://api.jquery.com/mouseleave/する

他のヒント

.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は、正しいソリューションの問題、そう思ってやってきましたが追加リンクでご提供しています。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top