关于mouseout问题jQuery [英] on mouseout problem jquery

查看:50
本文介绍了关于mouseout问题jQuery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好...

我有一个像这样的div:

Hello every body...

I have a div like this:

<div class="helptextdiv">
   <label id="helptextheader"></label>
   <label id="helptextcontent"></label>
</div>



我想在鼠标上隐藏div.
但是问题是当鼠标移到这两个标签上时,它也被取消了...
我知道这是真的,因为标签超出了div.


我该怎么做才能隐藏?

谢谢



I want to hide my div on mouse out.
but the problem is when mouse goes on these two labels it is also being disapearead...
I know it is true because labels are out of div.


what should I do to hide?

Thank you

推荐答案

标签是它们自己的控件,因此鼠标不在div之外.因此,为了使这项工作有效,您还需要将鼠标移入和移出标签.
The labels are their own control, so the mouse is ''out'' of the div. So, you need to handle the mouse in and out of the labels, too, in order to make this work.


这篇关于关于mouseout问题jQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆