Javascript printing on mobile devices(ios)

百般思念 提交于 2019-12-31 02:56:26

问题


I have to add Print button to my site. I used tyical window.print() solution.

But this method doesn't work in chrome and atomic browser on ios7 but works in safari.

How should I implement this feature?


回答1:


Check this out: http://www.printfriendly.com/browser_tool

You can integrate their javascript to your web page so that your users can either print directly or print as a pdf. IMHO the window.print() is useless on an iPad or iPhone unless you have a wireless printer nearby. Most of the cases you wont have one nearby. The option above is promising because i can save it to iBooks or Adobe Reader and later print or send it as an email - That's usable.



来源:https://stackoverflow.com/questions/20061383/javascript-printing-on-mobile-devicesios

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