Mi CSS externo no funciona en windows.print.Cómo imprimir con css externo
var divContents = document.getElementById("resultbox").innerHTML; var mywindow = window.open("www.facebook.com"); mywindow.document.write("<html><head><title>my div</title>"); mywindow.document.write( '<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" type="text/css" />' ); mywindow.document.write( '<link rel="stylesheet" href="stylish.css" type="text/css" />' ); mywindow.document.write( '<style> body{background-color:"green"}</style>' ); mywindow.document.write("</head><body >"); mywindow.document.write(divContents); mywindow.document.write("</body></html>"); mywindow.document.close(); mywindow.print();