あなたはすべてのタブの内容を、それに関連付けられたcss media print ruleを持つdivにレンダリングする必要があります。あなたの実際のタブには印刷のために非表示にする別のCSS規則も必要です。
<div id="tabs" class="print_hidden">
Your actual tabs go here
</div>
<div id="printTabs" class="screen_hidden">
Your printer friendly text goes here when the link below is clicked.
</div>
<asp:LinkButton runat="server" id="lnkPrinterFriendly">Printer-friendly view</asp:LinkButton>
は、次にCSSファイルでは、次の持っているので、たとえば、あなたが持っている:
@media print {
.screen_hidden { display: none; }
}
@media screen {
.print_hidden { display: none; }
}
CSSプリントメディア – epascarello