G4m*_*4mo 5 html embed iframe google-sheets
我想将一个Google工作表嵌入到我的HTML网站中,该工作表仅显示具有数据的单元格(无标题,行编号,以字母命名的列,边框等),并且查看者可以对其进行过滤。观看者可以临时过滤数据,但不应更改原始过滤。
我有谷歌表,其中有标题和数据下面的多个列。我已经使用Google表格的“过滤器”选项过滤了数据(包括标题)。我知道,如果我使用允许查看或编辑的共享链接,则可以嵌入可排序的Google表格。但是,当我使用该编辑或查看链接时,几乎不能使用任何url参数。
示例编辑/查看链接: https://docs.google.com/spreadsheets/d/{spreadsheet-key}/edit?usp=sharing
到目前为止,最好的尝试是使用url参数&rm = minimal,但它仍显示其他工作表,编号的行和以字母命名的列
我可以在从获得的链接上使用url参数File -> Publish to the web -> Embed。这里是链接:
< iframe frameborder="0" height="440" scrolling="no" src="https://docs.google.com/spreadsheets/d/{spreadsheet-key}/pubhtml?gid=0&single=true&range=A1:N20&widget=false&chrome=false&headers=false" style="float: left;" width="761"></iframe >
Run Code Online (Sandbox Code Playgroud)
=>我从视觉上得到了想要的东西:嵌入了仅包含数据的干净的电子表格。但是现在无法过滤。
到目前为止,这是最好的iframe(可排序但不干净):
< iframe height="440" frameBorder="0" src="https://docs.google.com/spreadsheets/d/{spreadsheet-key}/edit?usp=sharing&rm=minimal" width="761"></iframe >
Run Code Online (Sandbox Code Playgroud)
有没有办法只显示数据单元格并仍然允许排序?
小智 7
使用 html 嵌入 google 表格时,过滤器/排序功能会丢失;冻结行/列时也是如此。谷歌还没有解决这个问题,尽管多年来一直要求它。虽然通过 Excel Online 嵌入时可以做到这一点,但速度有点慢。
| 归档时间: |
|
| 查看次数: |
4117 次 |
| 最近记录: |