如何使用fancybox显示Word文档
问题描述:
HTML代码
<div class='case'>
<a href="http://localhost/DXXX/case/reqirement.doc" rel="case"> view</a>
</div>
jQuery代码
$(".case").live('click', function(){
$.fancybox({
openEffect: 'elastic',
closeEffect: 'elastic'
});
});
它显示请求的内容无法加载,请稍后再试....我下载了该文档文件...如何使用fancybox显示文档文件
it's displays the requested content cannot be loaded please try again later.... And I get a download of that document file... How can I display the document file using fancybox
答
您不能.浏览器没有任何内置的方式来查看Word文档,因此除非用户已配置其浏览器以使用某些插件打开它(世界上99%的插件尚未完成),否则浏览器将提示他们下载文件.
You can't. Browsers don't have any built-in way to view Word docs so unless the user has configured their browser to open it with some plugin (which 99% of the world hasn't done), the browser will prompt them to download the file.