jquery,带有工具提示的 simplemodal ?

发布于 2024-08-29 18:20:19 字数 364 浏览 4 评论 0原文

我正在使用 http://dev.mariusilie.net/content/simple- tooltip-jquery-plugin 用于我的工具提示和模式窗口的简单模式。我在模式窗口中有一个链接,当我将鼠标放在它上面时,工具提示就在那里,但它位于模式窗口下方。我认为这与“z-index”有关。我查看了一下,我认为模态窗口位于 1000。我已经在 css 中使用各种 z-index 值设置了 #simpleTooltip 属性,但没有运气。它始终出现在模式窗口下方。

有什么想法吗?

I'm using http://dev.mariusilie.net/content/simple-tooltip-jquery-plugin for my tooltip and simple modal for a modal window. I've got a link in the modal window and when I put my mouse over it, the tooltip is there, but it's beneath the modal window. I think it has to do with "z-index". I looked and I think the modal window is at 1000. I've set the #simpleTooltip property in the css with various z-index values, with no luck. It always appears beneath the modal window.

Any Ideas?

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

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

发布评论

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

评论(2

表情可笑 2024-09-05 18:20:19

您使用什么浏览器遇到此问题?您实际上正在使用 SimpleModal 或其他一些模态库吗?

在工具提示上设置 z-index 应该可以,或者您可以将 SimpleModal 的 z-index 设置为较低的值:

$(element).modal({zIndex:10});

该值应至少比工具提示值低 5。

With what browser are you having this issue? Are you actually using SimpleModal, or some other modal library?

Setting the z-index on the tooltip should work, or you can set the z-index for SimpleModal to a lower value:

$(element).modal({zIndex:10});

The value should be at least 5 below the tooltip value.

好多鱼好多余 2024-09-05 18:20:19

也许你的模态在它后面使用了一个 iframe ?如果是这样,那么您的 z-index 永远无法赢得这场战争,因为 iframe 始终保持领先。

在这种情况下,请考虑使用不使用 iframe 的模式,或者将工具提示也放在 iframe 之上,但我稍后不建议这样做。

maybe you modal uses an iframe behind it? if so then your z-index can never win the war as iframe always stays on top.

In that case consider using a modal that does not use an iframe or put your tooltip on top of an iframe too but i do not recommend that later.

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