gpt4 book ai didi

firefox - Firefox 中的 Fancybox PDF 问题

转载 作者:行者123 更新时间:2023-12-04 21:23:02 24 4
gpt4 key购买 nike

我设置了 Fancybox,当用户单击 pdf 链接时,它会在弹出窗口中显示 pdf,但是在 Firefox 中,它会询问您是要保存还是打开文件,我不想要这个。如何强制pdf显示在fancybox弹出窗口中?它适用于 Safari。

<a class="pdf" href="http://www.test.co.u.uk/test.pdf">test.pdf</a>

$(".pdf").fancybox({
'width' : '700',
'height' : '700',
'autoScale' : true,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});

最佳答案

就个人而言,我只会使用 Google Docs 在 iframe 中显示 PDF。它会自动调整 PDF 的大小以匹配 iframe 尺寸。这是要使用的格式:

<iframe src="http://docs.google.com/gview?url=http://samplepdf.com/sample.pdf&embedded=true" style="width:100%; height:100%;" frameborder="0"></iframe>

您不需要 Flash 或任何其他插件。

关于firefox - Firefox 中的 Fancybox PDF 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8806294/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com