工具提示在鼠标悬停上闪烁 [英] ToolTip Flickering on Mouseover

查看:111
本文介绍了工具提示在鼠标悬停上闪烁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨大家好,



我有一个跨度元素,css指向背景小纸夹图像,鼠标悬停在这个小工具提示的事件上显示,但是如果鼠标悬停在图像区域上只有工具提示闪烁。



我不明白为什么会发生这种情况,我尝试了所有JQUERY事件鼠标悬停, mouseout,mouseenter但它仍在发生。

解决方案

嗨大家好,谢谢你的支持,它解决了,这是因为跨度的重叠(跨度与背景图像)和工具提示虽然重叠不可见,但它仍然在触发工具提示mouseleave事件。



通过设置z-index和position:relative properties来解决它。

Hi Guys,

I have one span element with css pointing to background small paper-clip image,& on the mouse over event of this a small tool tip is displayed, however if the mouse the mouse over image area only the tool tip flickers.

I dont understand why this is happening, I tried all the JQUERY event mouseover, mouseout,mouseenter but still its happening.

解决方案

Hi Guys, Thanks for your supoport, Its resolved, it was because of overlapping of the span(span with background image) and tooltip although the overlapping was not visible but it kept on firing tooltip mouseleave event.

Its got resolved by setting the z-index and position:relative properties.


这篇关于工具提示在鼠标悬停上闪烁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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