如何允许在谷歌chrome中通过触摸屏放大和缩小iframe

How to allow zooming in and out of iframe in google chrome through touch screen

本文关键字:放大 触摸屏 缩小 iframe 何允许 谷歌 chrome      更新时间:2023-10-11

如何允许通过触摸屏在谷歌chrome中放大和缩小iframe。

当我试图缩放银河系选项卡中iframe的内容时,它失败了!


<iframe id="rad_pdf" width="100%" scrolling="no" height="930px" frameborder="0" style="border:0px none #ffffff;" src="RadPdf.axd?rt=2&dk=0000046432rO0XVW8JS3SBUMM5AE2XKXB&cn=rad_pdf&un=rad_pdf"> 

与Chrome和Firefox等具有内置渲染功能的桌面浏览器不同,移动浏览器不支持PDF的渲染。但是,这将根据用户的浏览器设置再次执行。

如果你想在移动浏览器上渲染PDF,可以看看这个名为PDF.js的JavaScript框架http://mozilla.github.io/pdf.js/web/viewer.html并检查它在移动/平板电脑浏览器上的功能。

你可以根据自己的需要使用它。希望这是有用的。