【问题标题】:Google form doesn't load in iframe in htmlGoogle 表单无法在 html 中的 iframe 中加载
【发布时间】:2016-06-20 14:54:24
【问题描述】:

我在 HTML5 中使用<iframe>,它对除 google 表单之外的所有其他链接都正常工作。请告诉我哪里错了。这是我正在使用的链接:
http://www.sciencekidunya.com/event

谷歌表单链接是: https://docs.google.com/forms/d/1ehENKS61N8rmXHxvIk7A8l0ocKBTpjgN4zpY-VDqJXs/viewform

代码是:

 <body>
 <center><img src="banner.jpg" width="100%" height="40%"><br><br>
<iframe src="https://docs.google.com/forms/d/1ehENKS61N8rmXHxvIk7A8l0ocKBTpjgN4zpY-VDqJXs/viewform"></iframe>
 </center></body>

【问题讨论】:

  • 错误:服务器拒绝连接。
  • 这是因为“X-Frame-Options 拒绝加载”。目前在 Chrome 浏览器中,您可以看到您的表单。所以你需要让 X-Frame-Options: allow 选项让它在所有浏览器上可见。

标签: html iframe web


【解决方案1】:

在某些情况下,在您更改其可见性设置之前,其他人可能看不到该表单。

这样做:

  1. 转到“设置”标签。

  2. 单击“响应”右侧的下拉箭头。

  3. 取消选中“仅限(您的组织)及其受信任组织中的用户”复选框。

您的 iframe 现在应该可以正确加载了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-05-23
    • 1970-01-01
    • 1970-01-01
    • 2016-05-19
    • 2022-01-09
    • 2016-08-06
    • 1970-01-01
    相关资源
    最近更新 更多