【发布时间】:2020-03-12 18:42:27
【问题描述】:
我正在尝试在我的 AMP 页面上嵌入 Google 表单,但是当我尝试使用 AMP 代码时。它只是说“正在加载...”,其中 Google 表单应该是:http://mogotest.com/amp/purple-mattress-coupon.html(请参阅移动设备)
到目前为止我采取的步骤。 1.我把这段代码放在AMP页面的头部
<script async custom-element="amp-iframe"
src="https://cdn.ampproject.org/v0/amp-iframe-0.1.js"></script>
- 我将此 Google 表单代码放在页面上。
<amp-iframe src="https://docs.google.com/forms/d/e/1FAIpQLSeFJf7DVgmzPEE1UfYXE3Oy0aBef80QXmRtLfKd1-b8aek0IQ/viewform?embedded=true" width=“100%” height="678" frameborder="0" marginheight="0" marginwidth="0">Loading…</amp-iframe>
有谁知道如何解决这个问题,还是我的 AMP 页面不是 HTTPS 的问题?
【问题讨论】:
-
HTTPS 和 CORS 是先决条件
-
所以它需要有 https 才能让谷歌表单工作?
-
同上评论
-
@JayGray HTTPS 不是必需的,视频、iframe 等某些功能需要它。
标签: wordpress embed amp-html google-forms