调用浏览器的的打印预览

调用浏览器的打印是javascript:print()

打印预览怎么弄呢,有么有类似于javascript:prvew()这样的东东啊

我没找到


ITMISS
浏览 420回答 1
1回答

慕侠2389804

打印预览:<script language="JavaScript" type="text/javascript">&nbsp;&nbsp;&nbsp; function printPreview() {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var e = event.srcElement;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.style.visibility = "hidden";&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WebBrowser1.ExecWB(7, 1);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.style.visibility = "visible";&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;</script><object id="WebBrowser1" width="0" height="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object><a href="#" onclick="printPreview()">打印预览</a> Hell World
打开App,查看更多内容
随时随地看视频慕课网APP