亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

javascript 打印頁(yè)面代碼

 更新時(shí)間:2009年03月24日 00:53:16   作者:  
不用window.print實(shí)現(xiàn)的打印效果代碼。
復(fù)制代碼 代碼如下:

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>javascript打印頁(yè)面</title>
<script type="text/javascript"><!--
function fPrint(){
//隱藏不需要打印的內(nèi)容.
document.getElementById("divOperate").style.display="none";
document.all.WebBrowser.ExecWB(7,1);
document.getElementById("divOperate").style.display="block";
}

// --></script>
</head>
<body>
<div id="divOperate">
<a href="javascript:void(0);" href="javascript:void(0);" onclick="fPrint();">打印</a>
<object id="WebBrowser" width="10" height="10" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>
</div>
<div id="divPrint">
<div>設(shè)置標(biāo)題</div>
<table border="1">
<tr>
<td>這里是要打印的內(nèi)容</td>
<td>hello</td>
<td>hello</td>
</tr>
<tr>
<td>hello</td>
<td>hello</td>
<td>hello</td>
</tr>
</table>
</div>
</body>
</html>

相關(guān)文章

最新評(píng)論