如何打印网页 [英] how to print a web page
本文介绍了如何打印网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在网上进行报价。我希望用户能够打印它。
我已经在这个网页。在这个网页上,有一个打印选项。当用户点击打印时,如果连接打印机,打印机会向打印机发送打印命令。
有谁知道我该怎么做?
解决方案
< button id =printbuttononclick =window.print() ; />
Possible Duplicate:
How to print a portion of an HTML page?
I am making a quotation online. I want the user to be able to print it.
I have seen my exact requirement on this webpage. On this web page, there is a print option. When the user clicks on print it will send a print command to the printer if a printer is attached.
Does anyone know how can I do that?
解决方案
<button id="printbutton" onclick="window.print();" />
这篇关于如何打印网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文