JS 使用 window对象的print方法css实现分页打印
我们只要在需要分页的元素上加上css:'page-break-after:always' 由于实现起来比较简单就直接上代码了哈。
<table width="757" height="174" border="0" align="center" cellpadding="0" cellspacing="0" tyle="page-break-after:always">
<tr class="noprint">
<td height="133" align="center" valign="top">
...
</tr>
</table>
<script>
function Print(){
window.print();//打印
window.opener.location.reload();
}
</script>