如何在Firefox/IE/Chrome中使用浏览器显示ppt/doc/xls/pdf

How To Use The Browser To Show ppt / doc / xls / pdf In Firefox /IE /Chrome

在我的 Html 标签上,我有一个 URL (http://infolab.stanford.edu/pub/papers/google.pdf) 想要在不下载的情况下在浏览器上打开它我该怎么做,请帮助我做到这一点问题?

PS: I have found out the solution with Google API

我一直在寻找一种在浏览器中显示 *.PPT / *.PDF / *.XLS / *.DOC 的好方法,希望这种方法可以帮助每个和我有同样问题的人,如下例代码

<iframe src="http://docs.google.com/gview?url=http://infolab.stanford.edu/pub/papers/google.pdf&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>

<iframe src="http://docs.google.com/gview?url=http://download.ppt-to-dvd.com/tem/wedding2.potx&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>

<iframe src="http://docs.google.com/gview?url=http://www.ysnp.gov.tw/upload/%E4%B8%AD%E8%8B%B1%E8%A9%9E%E5%BD%99%E5%B0%8D%E7%85%A7%E8%A1%A8.doc&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>

<iframe src="http://docs.google.com/gview?url=http://www.jplayer.org/video/m4v/Big_Buck_Bunny_Trailer.m4v&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>

您好,您可以使用对象元素来显示 pdf、doc 等

<object data="xx.pdf" type="application/pdf">
    <embed src="xx.pdf" type="application/pdf" />
</object>

有关更多信息,请查看此 link