【发布时间】:2016-07-08 20:59:59
【问题描述】:
我有一个显示 google docs 文档的 iframe 代码:
<div itemprop="description" class="col-xs-12 no-h-padding" id="article_desc" style="margin:0 auto; width:90%; float:none;">
<iframe src="https://docs.google.com/viewer?url=http://example.com/docs/1.pdf&hl=ar&embedded=true" scrolling="no"></iframe>
</div>
现在我想将上图中的灰色背景更改为白色背景色,我一直在寻找解决方案,我想出了this,但它不起作用,背景变成了白色(使用我的自定义 css),但谷歌文档不起作用,它显示一条消息,告诉我 iFrame 内部“出了点问题”。
有人知道如何更改灰色背景颜色吗?
编辑 它适用于 Google Chrome 和 Opera,但不适用于 Firefox 和 Safari。
【问题讨论】:
-
有趣的问题。希望你能找到解决方案,别忘了在这里分享))
-
我不认为这样做是个好主意。
标签: iframe google-docs google-docs-api