【发布时间】:2021-09-20 17:41:13
【问题描述】:
我正在尝试创建一个应用程序,该应用程序显示在具有透明背景的 Google Apps 脚本上制作的表单。在浏览了几篇 StackOverflow 帖子后,我发现设置 body 标签的 background-color CSS 元素并将 allowtransparency="true" 添加到 Iframe 就可以了。但是,我的 iframe 仍然显示白色背景。据我所知,无论是 Google Apps 脚本端还是我的 Iframe 端都没有错误。谢谢!
编辑:我发现 Google Apps 脚本将您的网络应用程序嵌入到 Iframe 中,这可能会影响 background-color 标记的工作方式,因为现在有 2 个 body 标记,其中最高的标记具有background-color: white
【问题讨论】:
-
这能回答你的问题吗? There is no attribute "allowtransparency"
-
总之,如果你想要透明,就不要设置背景色。
-
在这种情况下将背景颜色更改为透明是否有帮助?
-
链接的答案说:源页面不能设置自己的背景。如果是,它会忽略透明背景。
-
我刚刚用一个新发现编辑了我的问题。你知道我还能尝试什么吗?
标签: html css google-apps-script iframe