Simplemodal - 如何实现它?

发布于 2024-10-03 11:17:37 字数 118 浏览 0 评论 0原文

这里是新手...向您专业人士提出的简单问题

如何在 html 页面上放置一个按钮,其中显示“电子邮件”,然后弹出简单模式联系表单(就像在演示中一样) 无法正确使用链接...:(

问候 /皮亚

Newbie here...easy question for you pro outthere

How to put a button on a htmlpage that says E-mail here, and then the simplemodal contactform pop up (just like in the demo)
Can't get it right with the link... :(

Regards
/Pia

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

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

发布评论

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

评论(2

当梦初醒 2024-10-10 11:17:37

在这里发布您的代码(HTML 和 JS)会很有帮助,因为对于像这样的简单情况,示例非常清楚,因此很难知道您做错了什么。

检查以下内容:

  1. 您的脚本标签是否在此
    顺序:JQuery、SimpleModal、JS 文件
    包含
  2. 您正在绑定到右侧的 模态开放绑定
    div 在你的 html 中使用 $('#id').modal()
    最好 - $('.class').modal() 可能有效,
    但通过 id 绑定是最好的

Posting your code (HTML and JS) would be helpful here as the examples are pretty clear for a simple situation like this, so it's hard to know what you're doing wrong.

Check the following:

  1. That your script tags are in this
    order: JQuery, SimpleModal, JS file
    that contains the modal-open binding
  2. That you are binding to the right
    div in your html with $('#id').modal()
    preferably - $('.class').modal() might work,
    but binding by id is best
遥远的绿洲 2024-10-10 11:17:37

您是否尝试过下载联系表单演示并使用以index文件为例说明怎么做呢?

Have you tried downloading the contact form demo and using the code in the index file as an example of how to do it?

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