为什么工具提示弹出得太低,然后又滑到正确的位置?

发布于 2024-11-05 08:21:32 字数 460 浏览 2 评论 0原文

我使用 qTip (1.0.0 rc3) 在我的网站和 jQuery 上创建漂亮的工具提示(1.6,也尝试了 1.3.2,这是 qTip 推荐的)。提示是动态加载的。我不使用任何显示或隐藏效果。定位为“右中”。我在 Linux 上使用 Firefox 和 Chrome,在 Windows 上使用 IE。

当我加载页面然后第一次将鼠标悬停在某个元素上时,qTip 会从服务器获取工具提示的内容。在这轻微的延迟期间,工具提示最初显得太低(顶部边缘与元素对齐)。然后,在加载内容后,工具提示会向上滑动(动画时间可能超过 200 毫秒)到正确的位置。

仅当提供工具提示内容有一点延迟时才能观察到这种情况。当我在本地服务器上开发时,延迟不够大。我需要在服务函数中添加 sleep(1) 才能看到这种情况的发生。但在生产系统上,当请求实际上必须通过互联网发出时,它总是可见的。

这是 qTip 的错误吗?还是有一些我还不知道的设置?

非常感谢您的帮助。

I use qTip (1.0.0 rc3) to create nice tooltips on my site and jQuery (1.6, also tried 1.3.2, which was recommended by qTip). The tips are dynamically loaded. I don't use any show or hide effect. Positioning is 'rightMiddle'. I used Firefox and Chrome on Linux and IE on Windows.

When I load the page and then hover over an element for the first time, qTip fetches the contents for the tooltip from the server. During that slight delay, the tooltip initially appears too low (the top edge aligns with the element). Then, after it has loaded the contents, the tooltip slides up (animated over maybe 200 ms) into the correct position.

This can only be observed if there is a bit of delay in serving the tooltip content. When I develop on my local server, the delay is not big enough. I need to add a sleep(1) into the serving function to see this happening. But on the production system, when the request has to actually go out over the Internet, it's always visible.

Is this a bug in qTip? Or is there some setting I don't know about yet?

Thank you very much for your help.

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

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

发布评论

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

评论(1

月野兔 2024-11-12 08:21:32

抱歉 - 在论坛上看到您的留言,但还没有机会回复。

无论如何,这是 qTip v1.0 中的一个已知错误。建议的修复已固定在论坛中,但您必须自己制作并缩小/打包,因为 v1.0 不再处于积极开发状态(qTip2 即将到来):

http://craigsworks.com/projects/forums/thread-how-to-disable-the-fly-by-animation-on-1-0

还有许多其他线程如果您想花时间寻找它们,请谈论该问题。

编辑:看起来自从您在这里发布这个问题以来,克雷格已经用相同的信息在论坛中回答了您的原始帖子:)

Sorry -- saw your message on the forums but hadn't had a chance to reply yet.

In any case, this is a known bug in qTip v1.0. A suggested fix is pinned in the forums, but you'll have to make it yourself and minify/pack since v1.0 is no longer under active development (qTip2 is right around the corner):

http://craigsworks.com/projects/forums/thread-how-to-disable-the-fly-by-animation-on-1-0

There are a number of other threads talking about the issue if you want to spend the time searching for them.

Edit: Looks like since you posted this question here, Craig has answered your original post in the forums with the same info :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文