调用浏览器的打印是javascript:print()打印预览怎么弄呢,有么有类似于javascript:prvew()这样的东东啊我没找到
1 回答
慕侠2389804
TA贡献1719条经验 获得超6个赞
打印预览:
<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()">打印预览</a> Hell World
- 1 回答
- 0 关注
- 419 浏览
添加回答
举报
0/150
提交
取消