jquery 工具提示 ipad 错误

发布于 2025-01-04 17:19:12 字数 146 浏览 2 评论 0原文

需要一些帮助。我一直在我的网站上使用工具提示,除了 ipad 之外,一切都正常。他们流离失所。

我使用最新版本的工具提示和 jquery。

有什么想法吗?

工具提示代码可以在 Formular.js 中找到!

此致

Need some help. Ive been using tooltips on my site and everything is working finde except for the ipad. They are displaced.

Im using latest version of tooltips and jquery.

any idea?

tooltip code can be found in formular.js!

best regards

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

月亮坠入山谷 2025-01-11 17:19:12

找到了解决方案。如果有人在 iPad 上遇到同样的问题并使用 jquery 工具提示,只需删除 iPad Fix 部分即可!

// iPad position fix
if (/iPad/i.test(navigator.userAgent)) {
  top -= $(window).scrollTop();
}

Found the solution. If anyone is having the same problem on iPad and using jquery tooltips just delete the iPad Fix part!

// iPad position fix
if (/iPad/i.test(navigator.userAgent)) {
  top -= $(window).scrollTop();
}
别把无礼当个性 2025-01-11 17:19:12

如果您想在不编辑 jquery 工具源的情况下解决问题:

selectedObj.tooltip({ 
    ...
    onBeforeShow : function(a, b){
      // fix for ipad
      if(isiPad)  {
         selectedObj.data('tooltip').getConf().offset = [$(window).scrollTop(), 0];
      }
    },
    ...
});

If you want to resolve the issue without editing jquery tools source:

selectedObj.tooltip({ 
    ...
    onBeforeShow : function(a, b){
      // fix for ipad
      if(isiPad)  {
         selectedObj.data('tooltip').getConf().offset = [$(window).scrollTop(), 0];
      }
    },
    ...
});
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文