asp.net中只打印web窗体中的某一个table中的内容

来源:互联网 发布:mac打开文件夹新窗口 编辑:程序博客网 时间:2024/06/03 15:17
 <style>   @media   Print    
  {    
  .print   {   DISPLAY:   block   }  
  .nprint   {   DISPLAY:   none   }  
  }  
  </style>  
  要打印的TABLE  
  <TABLE   class="print"   id="Table4"   >  
  .  
  .  
  .  
  </TABLE>  
  不要打印的TABLE  
  <TABLE   class="nprint"   id="Table4"   >  
  .  
  .  
  .  
  </TABLE>  
  <INPUT   type="button"   value="列     印"   onclick="window.print();"   style="WIDTH:   49px;   HEIGHT:   24px">
原创粉丝点击