标签: javascript php html css
当用户点击打印此页面时,我想将div显示为打印页面模板。我有一个.php文件。我试过了:
.php
<a class="printer" href="javascript:window.print("printArea")">Print this Page</a> <div id="printArea"> Some stuff to print </div>