如何使用fancybox显示Word文档 [英] How to display a word document using fancybox

查看:132
本文介绍了如何使用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.

这篇关于如何使用fancybox显示Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆