HTML页面打印

<style media=print>.Noprint{display:none;}</style>
<object  id="WebBrowser"  width=0  height=0  classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object><div class="Noprint" style="position:absolute;top:0px;left:0px;z-index:4" >
    <input type=button value=打印 onclick=document.all.WebBrowser.ExecWB(6,1)>
    <input type=button value=直接打印 onclick=document.all.WebBrowser.ExecWB(6,6)>
    <input type=button value=页面设置 onclick=document.all.WebBrowser.ExecWB(8,1)>
    <input type=button value=打印预览 onclick=document.all.WebBrowser.ExecWB(7,1)>
</div>

 

posted @ 2017-07-25 19:45  花弄影  阅读(336)  评论(0编辑  收藏  举报