js 打印网页部分内容
function print_table() {
var stxt = document.all.testPrint.innerHTML; // testPrint 页面上的容器,如表格,div
//stxt = '<link href= "css.css" rel= "stylesheet " type= "text/css "> ' + stxt;
var pwin = window.open("", "print");
pwin.document.write(stxt);
pwin.document.close(); //这句很重要哦
pwin.print();
}