如何使用php从页面中取出打印内容? [英] How to take the print out of a page using php ?

查看:184
本文介绍了如何使用php从页面中取出打印内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用php从页面中取出打印内容. 我可以用Javascript来做.但是想用PHP做到这一点. 除了使用Java

I am trying to to take the print out of a page using php. I can do it in Javascript. But would like to do it using PHP. Is there any way to do other than using Javascript

推荐答案

否.打印页面是浏览器的功能,因此您必须使用浏览器中运行的代码.那意味着只使用Javascript,而不是PHP.

No. Printing a page is a function of the browser, so you have to use code that's running in the browser. That means Javascript only, not PHP.

这篇关于如何使用php从页面中取出打印内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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