Javascript Google文档-如何在iframe中使用时删除标题?

Javascript Google文档-如何在iframe中使用时删除标题?,javascript,iframe,google-docs,google-docs-api,google-document-viewer,Javascript,Iframe,Google Docs,Google Docs Api,Google Document Viewer,如何删除或隐藏此标题部分:放大、缩小、页码、后退、下一步、弹出 使用此方法时: <iframe src="http://docs.google.com/gview?url=http://www.webiste.com/pdffiles.pdf&embedded=true" style="width:750px; height:5190px;" frameborder="0"></iframe> 您必须以javascript中的每个元素为目标并隐藏它们 f

如何删除或隐藏此标题部分:放大、缩小、页码、后退、下一步、弹出

使用此方法时:

<iframe src="http://docs.google.com/gview?url=http://www.webiste.com/pdffiles.pdf&embedded=true" 
style="width:750px; height:5190px;" frameborder="0"></iframe>   

您必须以javascript中的每个元素为目标并隐藏它们

function hideelements() {
     document.getElementById('element id which you want to hide').style.dispaly = 'none';
}

这是javascript代码,它将帮助您。您必须在加载事件时调用函数,这样它将隐藏您的元素集。

但该工具栏位于iframe内,因此如何从主页进入iframe并隐藏它?此外,iframe正在浏览外部web URL。如果URL不是本地URL,则某些浏览器安全原因不允许修改iframe