網(wǎng)頁(yè)中打印表格數(shù)據(jù)備份
<style ? media="print">
.noprint ? { ? display: ? none ? }
</style>
上面的代碼寫在<head>中···
<INPUT ? onclick="document.execCommand('print','true','true')" ? class="noprint" ? type="button" ? value="打印">
然后在你不要打印的地方加一個(gè) ? class="noprint"屬性···