Questions tagged «onmouseout»

19
当悬停父绝对div的子元素而没有jQuery时,防止onmouseout
我onmouseout在绝对位置div中的函数遇到麻烦。当鼠标单击div中的一个子元素时,将触发mouseout事件,但我不希望它触发,直到鼠标不在父绝对div之外。 我如何防止mouseout事件在没有jquery的情况下击中子元素而触发。 我知道这与事件冒泡有关,但是我没有运气去寻找如何解决这个问题的方法。 我在这里找到了类似的帖子:如何禁用由子元素触发的mouseout事件? 但是,该解决方案使用jQuery。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.