Why PDF not opening in iFrame in Chrome when switched to Mobile Device Mode

陌路散爱 提交于 2019-12-19 11:19:04

问题


This shows the pdf when we open it in browser.

<html>
<head>
</head>
<body>
<iframe src="https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/44678.pdf" width="100%" height="100%" >
</iframe>  
</body>
</html> 

But when I switch it to mobile view, it DOESNT work. Steps:

  1. Open Chrome Inspect Window.
  2. Click "Toggle Device Toolbar" icon on the top menu on inspect window toolbar.
  3. Now we can still see the pdf in mobile view.
  4. Once we refresh it, we can NO LONGER SEE pdf.
  5. Why ? I need to iframe the pdf and show it in mobile app in web view.
  6. Is it possible or not ?

来源:https://stackoverflow.com/questions/49099883/why-pdf-not-opening-in-iframe-in-chrome-when-switched-to-mobile-device-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!