<style>
@media print {
.pn {display:none;}
}
</style>
或
<input type=button class="pn" value="print">
或
<script language="javascript">
function prn()
{
document.formname.prints.style.visibility="hidden";
window.print()
//}
</script>
<input id="prints" type=button class="pn" value="print" onclick="prn()">