<style>@media print {.print{display: none;}}</style>
... ...<input type=button class=print value='打印'>

解决方案 »

  1.   

    <style media="print">
    .noprint  { display: none }
    </style> <input type="button" class="noprint" name="print" value="Print the Page" style="height:20px" onclick="javascript:window.print();"/> <input type="button" class="noprint" name="saveas" value="Save the Page" style="height:20px" onclick="if(!window.document.execCommand('SaveAs',false,' Laber')) return false;"/>
      

  2.   

    <script ID="clientEventHandlersJS" LANGUAGE="javascript">
    <!--
    function onprint()
    {
    printbutton.style.display="none";
    this.print();
    printbutton.style.display="";

    }
    -->
    </script>
    ……
    ……
    <!--==================打印数据========================================-->
      <br>
      <center>
      <div name="printbutton" id="printbutton">
      <table><tbody>
         <tr><td bgcolor=#4080b0 height=22 valign=middle>
       <input id="button1" name="button1" type="button" value="打印数据" LANGUAGE=javascript onclick="return onprint()">
         </td></tr>
      </tbody></table>
      </div>
      </center>
      <!--==================打印数据========================================-->
      

  3.   

    用sherrywear(sherrywear)的试了试 ,很好!达到预期效果!
    谢谢各位!