google doc reader:删除“在新窗口中打开”选项

google doc reader : remove the option "Open in new window"

本文关键字:在新窗口中打开 选项 删除 doc reader google      更新时间:2023-09-26

是否有任何方法可以通过嵌入代码(我们为嵌入文档编写)或javascript/jquery删除或禁用google doc reader(在嵌入式模式界面中使用时)的'在新窗口中打开'图标?

我不知道是否有标准的方法。如果你真的想这样做,那么你可以试试这样做。

<html>
    <body>
        <div style='position:relative;'>
            <div style='background-color:White;top:0px; height: 47px; position: absolute; left:0px; width: 100%;'></div>
            <div style='background-color:LightGray;top:47px; height: 5px; position: absolute; left:0px; width: 100%;'></div>
            <iframe src='http://docs.google.com/viewer?url=http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf&embedded=true' width='100%' height='100%' style='border: none;'/>
        </div>
    </body>
</html>

不,据我所知,嵌入式代码在另一个域(Google)的iFrame中运行,因此您不能使用脚本更改该内容。

也许,尝试将&rm=minimal添加到嵌入文档的url中。

嵌入可编辑的Google Docs电子表格,没有标题&工具栏