简体   繁体   English

此代码适用于Chrome,Firefox但不适用于IE

[英]This code works fine in Chrome, Firefox but not in IE

I'm trying to make a jquery tooltip that appears when a user mouses over a link. 我正在尝试制作一个jquery工具提示,当用户将鼠标悬停在链接上时会出现该工具提示。 In my case the link is using display:block style so that it covers a large area. 在我的情况下,链接使用display:block样式,以便覆盖大面积。 It works perfectly in Chrome and Firefox but in Internet Explorer it doesn't work at all. 它在Chrome和Firefox中完美运行,但在Internet Explorer中根本不起作用。 The tooltip doesn't show, the browsers own tooltip shows etc... IE!!!! 工具提示没有显示,浏览器自己的工具提示显示等... IE !!!!

http://pastebin.com/1kBaMujV http://pastebin.com/1kBaMujV

Any ideas? 有任何想法吗? Got to love internet explorer... 得爱上网探险家......

Ok well i took your advice and went for a pre existing one using jQueryTools from flowplayer. 好吧,我接受了你的建议,并使用来自flowplayer的jQueryTools进行了预先存在的建议。 This is the result: 这是结果:

http://pastebin.com/gxSQx64B http://pastebin.com/gxSQx64B

Works great in chrome, firefox and internet explorer. 适用于chrome,firefox和Internet Explorer。 I guess it is best to use one that is mature. 我想最好使用一个成熟的。 The only thing that still annoys me is in firefox if you click on the link then click the browser back button, the tooltip is statically displayed over the link area until you move the mouse back over the link area. 唯一让我烦恼的是在Firefox中,如果点击链接然后点击浏览器后退按钮,工具提示将静态显示在链接区域上,直到您将鼠标移回链接区域。 This doesn't happen with the other browsers. 其他浏览器不会发生这种情况。

Which version of IE you are using? 您使用的是哪个版本的IE? In IE 8 it is fine. 在IE 8中它很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM