【发布时间】:2012-11-20 17:02:53
【问题描述】:
我有使用 jQuery 1.7.1 的 jQuery 工具工具提示。然而,我不得不将我的 jQuery 更新到 1.8.1 以解决一个甜蜜的 IE8 和更低的问题。工具提示不再适用于 jQuery 1.8.1。有谁知道快速修复?谢谢。
更新 - 这是我用来调用插件的 JS。也使用 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' } });
});});
【问题讨论】:
-
你遇到了什么错误?
-
最快的解决方法是离开 jQuery 工具。还有很多其他的 jQuery 插件做得更好。
-
在控制台中没有收到任何 JS 错误。
-
前段时间我开始使用纯 CSS 工具提示,我无法想象我会回去的场景......值得研究,除非你出于某种原因需要使用 js。跨度>
标签: jquery tooltip jquery-tools