【问题标题】:How to disable google web viewer full screen option如何禁用谷歌网络查看器全屏选项
【发布时间】:2016-06-30 07:03:05
【问题描述】:

我正在使用带有 iframe 的嵌入式谷歌查看器来显示 pdf,我想从中删除全屏弹出窗口以及如何禁用 iframe 中的右键单击。

尝试了很多事情但没有任何结果,我的 pdf 的 url 存储在 db 中。

我的代码是

   <iframe id="display" src="https://docs.google.com/gview?url=http://infolab.stanford.edu/pub/papers/google.pdf&pid=explorer&efh=false&a=v&chrome=false&embedded=true" style="width:1000px; height:1000px;" frameborder="0"></iframe>

我尝试像这样更改 css

<script type="text/javascript">
var iframe = jQuery("#display").contents().find("aria-label").css( "display", "none" );

请大家帮帮我

【问题讨论】:

    标签: jquery css iframe


    【解决方案1】:

    我在使用 google docs viewer 时遇到同样的问题,通过使用 CSS 获得了解决方案:

    div[role="toolbar"] {
        display: none;
    }
    

    它隐藏了谷歌文档查看器的弹出 div。

    【讨论】:

      猜你喜欢
      • 2019-02-28
      • 2020-01-21
      • 2021-10-01
      • 1970-01-01
      • 2014-10-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-22
      相关资源
      最近更新 更多