打印功能:window.print();
<table cellpadding="1" οnmοuseοver="kpr.style.display='';" style="width:130px;">
<tr>
<td height="25" colspan="3"><script language="javascript">
function printit(){
if (confirm('确定打印吗?')){
window.print();
}
}
function fanhui(){
window.location.href="${pageContext.request.contextPath}/Consum/getConsumList.do";
}
</script>
<OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0 id=wb name=wb width=3></OBJECT>
<div id="kpr">
<input class="ipt" type=button name= button _print value="打印" onclick ="kpr.style.display='none';javascript :printit();">
<input class="fanh" type=button name= button _print value="返回" onclick ="kpr.style.display='none';javascript :fanhui();">
</div>
</tr>
</table>