調(diào)用瀏覽器的打印是javascript:print()打印預(yù)覽怎么弄呢,有么有類似于javascript:prvew()這樣的東東啊我沒找到
1 回答

慕俠2389804
TA貢獻(xiàn)1719條經(jīng)驗(yàn) 獲得超6個(gè)贊
打印預(yù)覽:
<script language="JavaScript" type="text/javascript">
function printPreview() {
var e = event.srcElement;
e.style.visibility = "hidden";
WebBrowser1.ExecWB(7, 1);
e.style.visibility = "visible";
}
</script>
<object id="WebBrowser1" width="0" height="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
</object>
<a href="#" onclick="printPreview()">打印預(yù)覽</a> Hell World
- 1 回答
- 0 關(guān)注
- 441 瀏覽
添加回答
舉報(bào)
0/150
提交
取消