web页局部打印

来源:互联网 发布:淘宝连衣裙 编辑:程序博客网 时间:2024/04/29 15:57
 <script language="javascript">
<!--
function PrintNote()
{
var PrintWin=window.open('about:blank','Print');
PrintWin.document.write(
'<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>' + document.all("PrintContent").innerHTML);
PrintWin.document.all.WebBrowser.ExecWB(
7,1);
PrintWin.close();
}
-->
</script>