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MDM5MzUgMDAwMDAgbiAKMDAwMDAwNTc2OCAwMDAwMCBuIAowMDAwMDA1Nzg5IDAwMDAwIG4gCjAwMDAwMDU5MTMgMDAwMDAgbiAKMDAwMDAwNTkzMiAwMDAwMCBuIAowMDAwMDA1OTU0IDAwMDAwIG4gCjAwMDAwMDU5NzMgMDAwMDAgbiAKdHJhaWxlcgo8PAovU2l6ZSAxOAovSW5mbyAxNyAwIFIKL1Jvb3QgMSAwIFIKPj4Kc3RhcnR4cmVmCjYxNjcKJSVFT0YK"
type="application/pdf" width="100%" height="400">
</object>
在Chrome中完美运行;但是,它不会出现在IE中!
这是JS小提琴,所以你可以自己看看:
如何让它在IE和Chrome中运行?
答案 0 :(得分:1)
目前,如果没有Adobe Reader或某些第三方插件,则无法在IE中显示PDF。我认为这是问题的原因