无法使用 fancybox 显示 PDF
HTML 代码
<div class="casestudy">//$casestudyDocData=http://localhost/xxxx/case/interview_questionarie.pdf
<iframe src="<?php echo $casestudyDocData; ?>" width="395" height="195"> </iframe>
<a class="fancypdf" href="<?php echo $casestudyDocData; ?>" >Link to PDF </a>
jquery代码
$(".fancypdf").fancybox({
'frameWidth': 680,
'frameHeight':495,
'overlayShow':true,
'hideOnContentClick':false
});
我正在使用fancybox来显示pdf 无法加载请求的内容。
请稍后重试。但是fancybox无法显示pdf?谁能发现我犯了什么错误?
Html code
<div class="casestudy">//$casestudyDocData=http://localhost/xxxx/case/interview_questionarie.pdf
<iframe src="<?php echo $casestudyDocData; ?>" width="395" height="195"> </iframe>
<a class="fancypdf" href="<?php echo $casestudyDocData; ?>" >Link to PDF </a>
jquery code
$(".fancypdf").fancybox({
'frameWidth': 680,
'frameHeight':495,
'overlayShow':true,
'hideOnContentClick':false
});
I am using fancybox to display the pdf The requested content cannot be loaded.
Please try again later. But fancybox is not able to display the pdf? Can anyone find what is the mistake i have done ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你应该只使用 'type':'iframe'
U should just use 'type':'iframe'