在移动设备上打印Javascript(ios) [英] Javascript printing on mobile devices(ios)

查看:70
本文介绍了在移动设备上打印Javascript(ios)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在我的网站上添加打印按钮。我使用了tyical window.print()解决方案。

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

但这种方法在chrome和atomic浏览器中不起作用在ios7上,但在safari中工作。

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

我应该如何实现此功能?

How should I implement this feature?

推荐答案

检查一下: http://www.printfriendly.com/browser_tool

您可以将他们的javascript集成到您的网页,以便您的用户可以直接打印或以PDF格式打印。恕我直言,window.print()在iPad或iPhone上没用,除非你附近有无线打印机。大多数情况下,你附近没有一个。上面的选项是有希望的,因为我可以将它保存到iBooks或Adobe Reader,然后打印或作为电子邮件发送 - 这是可用的。

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.

这篇关于在移动设备上打印Javascript(ios)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆