以HTML格式嵌入谷歌电子表格(结果很窄)

时间:2015-01-25 16:27:37

标签: html google-sheets

我在google驱动器中有一个电子表格。我已将其发布到网上,并在我的网站上粘贴了“正确的代码”。

<iframe src="linkToTheFile"></iframe>

就我而言

<iframe src="https://docs.google.com/document/d/1hIs40J7W5OfhplAokR3duEdJUY2rXEjv9muFawcfRS0/pub?embedded=true"></iframe>

Google说明https://support.google.com/docs/answer/183965?hl=sv

但这显示得太窄了。这就是它在网站上的样子。 (我在那里粘贴了两份文件)

enter image description here

1 个答案:

答案 0 :(得分:2)

在链接之前添加width =“600”height =“600”(你可以自定义宽度和高度,然后让你的叔叔陷入困境!

e.g。 <iframe width="600" height="600" src="https://docs.google.com/document/d/1hIs40J7W5OfhplAokR3duEdJUY2rXEjv9muFawcfRS0/pub?embedded=true"></iframe>

相关问题