可以使用jquery的printarea,js来实现
可能会出现打印页面空白问题。
解决方法:
1
doc = iframe.contentWindow.document;
使用时需要先open,再加上doc.open(); 即可。