<input type= "button" value="Print" onclick="return PrintReport()" class="lbutton"/>
<iframe frameborder="0" height="768px" width="95%" id="loader" src="" name="loader"/>
function PrintReport()
{
document.getElementById('loader').contentWindow.document.execCommand('Print',false,null);
return false;
}
包含按钮打印的点击aspx页面(HTML表格报告)HTML表想念自己的边框颜色和背景颜色打印后
iframe的名字装载机是广告获得成功,但是当我以PDF格式预览。
然后html报告错过了它们的边框颜色和背景颜色。
我检查设置ie ie 8允许背景颜色和图像。
如何在打印后得到表格边框颜色和背景颜色。
给内联CSS的表,然后检查。 – gaurang171 2012-08-09 11:18:58
giv内嵌CSS但不打印后打印 – lax 2012-08-09 11:48:14
即ie 7正常工作正常但未通过ie 8 – lax 2012-08-09 12:17:51