问题
I want to embed a live Google Sheet inside of new google sites. works fine but I want to hide/remove the title row and column headers and just show the workspace area
I have tried the following iframe code ( below ) in New Google sites and it still displays titles, row and column headers
Could you tell me what I am missing?
<iframe width="100%" height="400" src="https://docs.google.com/spreadsheets/d/SHEET_id/edit?usp=sharing&single=true&widget=true&headers=false"></iframe>
I have published to the web and used HTML embed parameters, however, HTML versions of the sheet take too long to update or it's unpredictable. The data is updated by a Google form.
<iframe width="100%" height="400" src="https://docs.google.com/spreadsheets/d/SHEET_id/edit?usp=sharing&single=true&widget=true&headers=false"></iframe>
Sheet displays in its entirety. I can hide some elements in the app but rows and column headers remain.
回答1:
use &range=A3:C10
parameter in URL like:
<iframe src="https://docs.google.com/spreadsheets/d/1B56.../pubhtml/sheet?headers=false&gid=0&range=A3:C10" width="400" height="350"></iframe>
this will publish only the range A3:C10
来源:https://stackoverflow.com/questions/56772554/only-show-a-portion-of-a-live-google-sheet