I'm trying to place PDF in <iframe>
for my web application. Works fine on all major desktop browsers but doesn't seem to be working on mobile devices. The files are downloaded instead any solution to this?

<iframe>中的PDF不适用于平板电脑
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- donglu5000 2013-07-31 12:11关注
If you want to display the PDF in a browser manually (as mobile browsers usually don't feature this automatically), you'd have to use some JavaScript framework like pdf.js.
Modern Browsers like Chrome or Firefox have special renderers built-in, whereas mobile browsers don't.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报