jQuery ColorBox 确认覆盖模式对话框吗?

发布于 2024-08-13 22:14:51 字数 378 浏览 3 评论 0原文

我将如何使用 ColorBox 创建一个“确认覆盖”模式对话框,该对话框可以中断表单提交,直到“是” ' 被点击。

简单模态 有一个 类似的功能,但我更喜欢 colorbox 的实现和文档,否则我会使用后者。

How would I use ColorBox to create a 'confirm override' modal dialog that can interupt a form submission until 'yes' is clicked.

Simple Modal has a similar function, but I much prefer colorbox's implementation and documentation, otherwise I'd use the latter.

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

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

发布评论

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

评论(2

混吃等死 2024-08-20 22:14:51

您可以使用 overrideClose 属性为 false 来在单击 colorbox div 外部时禁用关闭,并通过将 closebutton 属性设置为 false 将隐藏关闭按钮。这就是如何将 colorbox div 设置为模态。

代码:$.colorbox({overlayClose:false,closebutton:false});

You can use overlayClose property to false to make disable closing when you click outside the colorbox div and by setting closebutton property to false will hide close button . That is how you can make colorbox div as modal.

code : $.colorbox({overlayClose:false,closebutton:false});

野却迷人 2024-08-20 22:14:51

我无法帮助您使用 ColorBox,但如果您对 SimpleModal 有具体疑问或问题,我很乐意为您提供帮助。

I can't help you with ColorBox, but if you have a specific question or issue with SimpleModal, I'd be happy to help.

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