我有一个谷歌电子表格嵌入到一个网站上
<iframe src="https://docs.google.com/spreadsheets/SPREADSHEETURL&single=true&widget=true&headers=false" style="display: block; width: 100%; height: 100%;"></iframe>
但是我希望这个表是默认的垂直扩展。您只能通过滚动查看电子表格的下半部分,但我希望它默认显示整个电子表格。
奖励:
我还希望能够删除电子表格顶部显示电子表格名称的部分。
提前谢谢。
编辑:
我可能找到我要找的东西了
<iframe width="100%" height="160" frameborder="0" scrolling="yes" src="https://docs.google.com/spreadsheets/SPREADSHEETURL&single=true&widget=false&chrome=false" allowfullscreen=""></iframe>
这在一定程度上是可行的,但滚动问题仍然存在。滚动是查看电子表格下部的唯一方法。此外,在网站上更新需要很长时间,但这可能是谷歌的问题。
发布于 2017-08-26 12:19:50
找到了,我一定是想多了。
<iframe width="100%" height="1600" frameborder="0" scrolling="yes" src="https://docs.google.com/spreadsheets/SPREADSHEETURL&single=true&widget=false&chrome=false" allowfullscreen=""></iframe>
我只需将height参数更改为所需的值。
This site帮了我很多忙。
https://stackoverflow.com/questions/45891465
复制相似问题