我正在尝试将 Google 文档表嵌入到我的网站中,但是在删除标题栏和页脚时遇到了问题。我只想嵌入一系列单元格,而不是别的。有人对此有解决方案吗?我在 iframe 中尝试了“chrome=false”和“widget=false”但无济于事。任何帮助将不胜感激。谢谢。
我的 iframe:
<iframe src="https://docs.google.com/spreadsheets/d/e/2PACX-1vRAQLoHO6TOpu7Sh5M3DwUoHt_eh-dWb-fHAB6Jn5rRtbxJSGsKbXuw3C6nmC_FTqzSiSmLWStRrrDT/pubhtml?gid=0&range=a1:l28";single=true&widget=false&headers=false; width="1000" height="600;"></iframe>
最佳答案
我认为你的参数是正确的。但请使用该参数作为端点的查询参数,如下所示。
<iframe src="https://docs.google.com/spreadsheets/d/e/2PACX-1vRAQLoHO6TOpu7Sh5M3DwUoHt_eh-dWb-fHAB6Jn5rRtbxJSGsKbXuw3C6nmC_FTqzSiSmLWStRrrDT/pubhtml?gid=0&range=a1:l28&widget=false&headers=false&chrome=false" width="1000" height="600"></iframe>
引用:
Edit embedded spreadsheets
- gid=: The sheet ID.
- range=: The rows and columns that are published to the web. For example, A1:B14.
- widget=: True or false. If true, the sheet tab is displayed at the bottom.
- headers=: True or false. If true, row numbers and column letters are displayed.
- chrome=: True or false. If true, the title and footer are displayed.
如果这不是你想要的,我很抱歉。
关于embed - Google Docs 删除标题和页脚,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52540723/