Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 WordPress 网站,在一个页面中我有一个 iFrame,它加载了 MailChimp 表单。完成表格并提交信息后,我可以从 MailChimp 中选择返回您的主页,但是当我单击链接时,它只会在 iFrame 中加载我的整个网站。单击链接时是否可以在主窗口中加载页面?我知道我必须在链接上有属性 target="_parent",但是如何在 MailChimp 中添加它?
此致
只需用一个可能的解决方案完成这个旧帖子:在邮件黑猩猩最后调用的页面上添加这个小javascript就可以了
<script type="text/javascript"> // iframe breakout for mailchimp if(this != top){ top.document.location.href = this.document.location.href; } </script>