CSS控制打印时内容
在CSS代码中加入以下内容即可:
@media print{
/*以下为打印时载入的CSS代码*/
.banner, .sidebar{display:none;}
#wrapper, .main{clear:both;width:100% !important;height:auto !important;}
}