web打印程序

web打印程序

http://www.edusrc.com

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>学时证明</title>
<style type="text/css">
<!--
body,td,th {
 font-size: 16px;
 color: #A56E2B;
 font-weight: bold;
}
a {
 color: #FF0000;
}
.f1 {
    color: #4C330B;
}
-->
</style></head>

<script language=javascript>
function doPrint() {
bdhtml=window.document.body.innerHTML;
sprnstr="<!--startprint-->";
eprnstr="<!--endprint-->";
prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);
prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
window.document.body.innerHTML=prnhtml;
window.print();
}
</script>

<body>
<!--startprint-->
<table width="800" height="600" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top" background="http://xzpx3.ceat.edu.cn/public/portal/images/xsbg.jpg" style="padding-left:86px;"><table width="630" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="214" valign="bottom" class="f1">刘淑允</td>
      </tr>
      <tr>
        <td style="line-height:28px;padding-top:20px;">  <span class="f1">2010</span> 年 <span class="f1">12</span> 月 <span class="f1">1 </span>日至 <span class="f1">2011 </span>年 <span class="f1">1 </span>月 <span class="f1">7 </span>日参加教育部“学习贯彻全国教育工作会议精神和《国家中长期教育改革和发展规划纲要(2010-2020年)》远程专题培训”,累计完成 <span class="f1">97.78</span> 学时(60分钟/学时)课程学习。</td>
      </tr>
      <tr>
        <td height="148" align="right" valign="bottom"><table border="0" cellspacing="0" cellpadding="0" style="margin-right:156px;">
          <tr>
            <td align="right" class="f1">2011</td>
            <td width="46" align="right" class="f1">1</td>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<!--endprint-->

<div id="divOperate" name="divOperate" align="center">
<table border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="20"><a href="#" οnclick="doPrint();">打印此页</a>
 <!--a href="#">下载图片</a--></td>
  </tr>
</table>
<table border="0" width="780" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30" align="left">
    <font size="2" color="red">
 打印步骤:(以IE浏览器为例)
 <br/>
 点击浏览器菜单栏:工具→Internet选项(IE选项)→高级→勾选“打印背景颜色和图像”→确定→点击“打印此页”→选择打印机→打印
 </font><br/><br/>
 <font size="2" color="red">
 注意事项:
 <br/>
 1. 如需原样打印请使用彩色打印机。<br/>
 2. 去除页眉、页脚打印设置:<br/>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;点击浏览器菜单栏:文件→(打印→)页面设置→删除页眉、页脚输入框的内容(有的浏览器需下拉选项选择“-空-”)→“方向”选择横向→确定
 </font>
 </td>
 <!--td><img src="pageset.jpg" border="0" width="350px" height="130px"/></td-->
  </tr>
</table>
</div>
</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值