media print css on specific div

resaik_king

New Member
I use @media print for print html page.\[code\]@media\[/code\] print work fine in simple html page.But when I call javascript the \[code\]@media\[/code\] css not work on document.My javascript code is\[code\]<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.1.min.js" > </script><script type="text/javascript"> function PrintElem(elem) { Popup($(elem).html()); } function Popup(data) { var mywindow = window.open('', 'mydiv', 'height=400,width=600'); mywindow.document.write(data); mywindow.print(); mywindow.close(); return true; }</script>\[/code\]How can write media print css for work on specific div.
 
Back
Top