【发布时间】:2011-02-03 02:01:03
【问题描述】:
我在 javascript 中做这样的事情来打印我的页面的一部分点击链接
function printDiv() {
var divToPrint = document.getElementById('printArea');
var newWin = window.open();
newWin.document.write(divToPrint.innerHTML);
newWin.print();
newWin.close();
}
它在 Firefox 中运行良好,但在 IE 中不行。
有人可以帮忙
【问题讨论】:
标签: javascript internet-explorer printing