function w_Print(ele) {
if (window.print){
var para = document.getElementById(ele).innerHTML;
OpenWindow=window.open("about:blank", "newwin", "height=640, width=800,toolbar=no ,scrollbars="+scroll+",menubar=no");
//打开一个about:blank的好
OpenWindow.document.write(para);
//用document.write兼容性好.
setTimeout("OpenWindow.print();",1000);
}
}
if (window.print){
var para = document.getElementById(ele).innerHTML;
OpenWindow=window.open("about:blank", "newwin", "height=640, width=800,toolbar=no ,scrollbars="+scroll+",menubar=no");
//打开一个about:blank的好
OpenWindow.document.write(para);
//用document.write兼容性好.
setTimeout("OpenWindow.print();",1000);
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货