function fnPrintList() {

    //document.body.innerHTML = divPrintArea.innerHTML;

        //window.print();

    var print_area = document.getElementById("divPrintArea").innerHTML;

        win = window.open();

        window.focus();

        win.document.open();

        win.document.write('<'+'html'+'><'+'head'+'><'+'style'+'>');

        win.document.write(".print {width:17%;} .number {text-align:right;} table { border-collapse: collapse; border-spacing: 0; } body, th, td {color:#494949; font-family:'Nanum Gothic', '나눔고딕', 'Nanum Gothic Web', Dotum, Verdana,  sans-serif;  font-size:12px; line-height:1.4em;} table {width:100%; border:1px solid #cccccc;} table td, table th {height:25px; font-size:12px; border:1px solid #cccccc; vertical-align:middle;} table th {background-color:#FFCBA1; font-weight: bold;} table td {padding:0  10px;}");

        win.document.write('<'+'/'+'style'+'><'+'/'+'head'+'><'+'body'+'>');

        win.document.write(print_area);

        win.document.write('<'+'/'+'body'+'><'+'/'+'html'+'>');

        win.document.close();

        win.print();

        win.close();

    }

+ Recent posts