利用CSS控制打印http://blog.csdn.net/net_lover/archive/2004/07/06/35228.aspx

解决方案 »

  1.   

    <style>
    @media print{
    .xx {display:none}
    }
    </style>
    <table width="600" class="xx" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="60" align="center">不想打印的表格</td>
                  </tr>
                </table>
      

  2.   

    net_lover(孟子E章) ,不是输出,点打印后,通过打印机打印含“打印内容”的表格:
    <html>
    <body>
                <table width="600" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="60" align="center">打印内容</td>
                  </tr>
                </table>
                <table width="600" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="60" align="center">不想打印的表格</td>
                  </tr>
                </table>
    <a ...>打印</a></body>
    </html>
      

  3.   

    使用Frame也可以,将要打印的放在一个独立的网页
      

  4.   

    老孟说的没错啊<html>
    <style>
    @media print{
    .xx {display:none}
    }
    </style>
    <body>
                <table width="600" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="60" align="center">打印内容</td>
                  </tr>
                </table>
                <table class=xx width="600" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="60" align="center">不想打印的表格</td>
                  </tr>
                </table>
    <a ...>打印</a></body>
    </html>