日期:2014-05-18  浏览次数:20551 次

能不能在浏览器里面内嵌PDF阅读器?
能不能在浏览器里面内嵌PDF阅读器?

------解决方案--------------------
IE并不支持PDF格式,所以客户端必须安装Acrobat Reader;下列代码在安装了Acrobat Reader 后可直接显示
<HTML >
<HEAD >
<META http-equiv="Content-Type" content="text/html; charset=gb2312" >
<META http-equiv="Content-Style-Type" content="text/css" >
<META http-equiv="Content-Script-Type" content="text/javascript" >
<TITLE >Checking if Acrobat Reader installed (IE4+)... </TITLE >
<SCRIPT for="window" event="onload" >... <!--
document.all [
document.all.PDFNotKnown ? "IfNoAcrobat" : "IfAcrobat"
] .style.display = "block";
//-- > </SCRIPT >
</HEAD >
<BODY >
<NOSCRIPT >
Cannot determine if you have Acrobat Reader (or the full Acrobat)
installed <FONT size="-1" >(because JavaScript is unavailable or
turned off) </FONT >.
</NOSCRIPT >
<DIV id="IfNoAcrobat" style="display:none" >
你需要先安装Adobe Reader才能正常浏览文件,请点击这里下载Adobe Reader.
</DIV >
<OBJECT type="application/pdf" width=0 height=0 style="display:none" >
<DIV id="PDFNotKnown" style="display:none" >&nbsp; </DIV >
</OBJECT >
</BODY >
</HTML >