SimpleModal 基本模态对话框:如何在同一页面内打开独特的窗口?

发布于 2024-08-06 18:27:06 字数 306 浏览 1 评论 0原文

我正在使用 SimpleModal 基本模态对话框,但在使用它在页面上打开多个唯一窗口时遇到问题(我不需要它们同时打开或在另一个窗口之上打开)。
我尝试添加另一个类并在 js 文件中调用该类,但我没有得到它。这是我的示例页面,其中有“i”图标(右上角)打开一个上下文窗口——完全按照我想要的方式工作。我希望“共享”图标(照片下方)打开另一个窗口以链接到社交网站。我确信我错过了一些超级基本的东西。 -有人可以帮忙吗?

I'm using the SimpleModal Basic Modal Dialog and am having trouble using it to open more than one unique window on a page (I don't need them to open at the same time or on top of one another).
I tried adding another class and calling out that class in my js file, but I'm not getting it. Here is my example page, where I have the "i" icon (top-right) opening a contextual window --works exactly how I want it to. I want the "share" icon (below the photo) to open another window to link to social sites. I'm sure I'm missing something super elementary. -Can someone please help?

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

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

发布评论

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

评论(1

笑着哭最痛 2024-08-13 18:27:06

我对您的 HTML 和 JavaScript 进行了一些更改,其中
应该可以解决问题:

http://jsbin.com/inuna/edit

您正在加载 jQuery 两次,所以我建议你删除其中之一。如果
我建议您保留从 Google API 加载的版本
使用 1.3.2 版本而不是 1.2.6。

希望有帮助。

-埃里克

I've put together some changes to your HTML and JavaScript, which
should solve the issue:

http://jsbin.com/inuna/edit

You are loading jQuery twice, so I suggest you remove one of them. If
you keep the version that is loading from the Google API, I'd suggest
using the 1.3.2 version instead of 1.2.6.

Hope that helps.

-Eric

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