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

时间:2014-05-14 05:46:08

标签: javascript iframe google-docs google-docs-api google-document-viewer

如何删除或隐藏此标题部分:(放大,缩小,页码,后退,下一个,弹出窗口)

enter image description here

使用此方法时:

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

1 个答案:

答案 0 :(得分:1)

你必须在javascript中定位每个元素并隐藏它们。

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

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

相关问题