点击按钮调用window.print()时不打印按钮(用css控制)
<asp:Button ID="Button1" runat="server" Text="打印" class="buttonNoPrint" OnClientClick="javascript:window.print();return false;" />
<style type="text/css">
@media print {
.buttonNoPrint
{
display: none;
}
}
</style>
posted on 2009-06-05 11:20 liuhaitao 阅读(1015) 评论(0) 编辑 收藏 举报