I want to print webpage that support CSS using JavaScript, and here is my simple script:
print.css:
@media print {
body { background-color:red;}
}
webpage.html:
<HTML>
<head>
<link rel="stylesheet" type="text/css" href="print.css" media="print" />
</head>
<BODY>
Hello World!
</BODY>
</HTML>
Then I try out it, why the result (the background of my webpage) still give me white? I printed it using PDF creator.
Can anyone help me?