printThis.js
function setDocType($iframe, doctype){
                var win, doc;
                win = $iframe.get(0);
                win = win.contentWindow || win.contentDocument || win;
                doc = win.document || win.contentDocument || win;
                doc.open();
                doc.write(doctype);
                doc.close();
            }
function setDocType($iframe, doctype){
                var win, doc;
                win = $iframe.get(0);
                win = win.contentWindow || win.contentDocument || win;
                doc = win.document || win.contentDocument || win;
                doc.open();
                doc.write(doctype);
                doc.close();
            }
function setDocType ( $iframe , doctype ) { var win , doc ; win = $iframe . get ( 0 ) ; win = win . contentWindow || win . contentDocument || win ; doc = win . document || win . contentDocument || win ; doc . open ( ) ; doc . write ( doctype ) ; doc . close ( ) ; }
Add doctype to fix the style difference between printing and render
Add doctype to fix the style difference between printing and render