打印指定区域内容

function print(){
    var oWin=window.open("","_blank");
    oWin.document.write(document.getElementById("printcontent").innerHTML);
    oWin.focus();
    oWin.document.close();
    oWin.print();
    oWin.close();
}

你可能感兴趣的:(打印)