Google 文档删除标题和页脚

Google Docs Remove Title and Footer

我正在尝试将 Google 文档 sheet 嵌入我的网站,但是,我在删除标题栏和页脚时遇到了问题。我只想嵌入一系列单元格,别无其他。有人对此有解决方案吗?我在我的 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&amp;widget=false&amp;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.

如果这不是你想要的,我很抱歉。