嗨,我想知道是否有办法在灯箱中显示 pdf,最好是 Fancybox。
我已经设置了这个页面 http://smrtbrand.com/guidance/
如果您点击新生购物 list ,我会在 iframe 中加载它,但我相信它会加载 pdf 作为数据。
有什么想法吗?
最佳答案
使用 Fancybox iframe
<a href="sample.php">This goes to iframe</a>
并在 sample.php 中使用 Google Document Viewer
<iframe src="http://docs.google.com/gview? url=http://smrtbrand.com/pdfs/SMRT.newbaby.chcklst.pdf&embedded=true"
style="width:600px; height:500px;" frameborder="0"></iframe>
关于php - 在 Fancybox 或其他灯箱中显示 PDF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4418212/