jQuery 工具工具提示在 jQuery 1.8.1 中损坏 [英] jQuery Tools Tooltip broken with jQuery 1.8.1
问题描述
我有使用 jQuery 1.7.1 的 jQuery 工具工具提示.然而,我不得不将我的 jQuery 更新到 1.8.1 以解决一个甜蜜的 IE8 和更低的问题.工具提示不再适用于 jQuery 1.8.1.有人知道快速修复吗?谢谢.
I had jQuery Tools Tooltips working with jQuery 1.7.1. However, I had to update my jQuery to 1.8.1 to address a sweet IE8 and lower problem. The tooltips no longer work with jQuery 1.8.1. Anyone know a quick fix? Thanks.
更新 - 这是我用来调用插件的 JS.同样使用 livequery.
Update - here is the JS I use to call the plugin. Also using livequery.
$(function() {
$("th a[title], a.tipin[title]").livequery(function(){
$(this).tooltip({
offset: [-30, 0],
opacity: 0.9
}).dynamic({ bottom: { direction: 'down' } });
});
$("a.tip[title]").livequery(function(){
$(this).tooltip({
offset: [0, 30],
position: 'center right',
opacity: 0.9
}).dynamic({ bottom: { direction: 'down' } });
});});
推荐答案
所以我还使用 jQueryUI 1.8.19 来实现其他一些功能.我将 jQueryUI 更新到 1.9.1 以使用它的工具提示功能,这解决了我的 jQuery 工具工具提示问题.我猜 jQueryUI 1.8 中存在某种冲突?
So I was also using jQueryUI 1.8.19 for some other functionality. I updated jQueryUI to 1.9.1 to play around with its tooltip functions and this fixed my problem with jQuery Tools Tooltips. I guess there was some kind of conflict in jQueryUI 1.8?
这篇关于jQuery 工具工具提示在 jQuery 1.8.1 中损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!