dsp1836 2013-07-31 12:02
浏览 38
已采纳

<iframe>中的PDF不适用于平板电脑

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?

  • 写回答

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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?