php 实现打印功能

★使用jquery的printarea,js来实现

    

  

  

★可能出现的问题

  1.打印页面空白

    解决方法:doc = iframe.contentWindow.document; 使用时需要先open 。加上doc.open(); 即可

原文地址:https://www.cnblogs.com/walksnow/p/7136786.html