I want to print the entire div content using jquery.
Currently I am using window.print() method. But it displays only some content in print page and some content missing.
I want to print entire data in my print page.
I want to print the entire div content using jquery.
Currently I am using window.print() method. But it displays only some content in print page and some content missing.
I want to print entire data in my print page.
You should use a separate css file for printing the page or a css3 media queries:
<link rel="stylesheet" href="css/print.css" type="text/css" media="print"/>
css file:
body, html, #wrapper {
width: 100%;
}
or main css file:
@media print {
body, html, #wrapper {
width: 100%;
}
}
You can refer this