Hi I am taking print as Landscape in javascript, as there was no standard code, so i changed it to like that i rotate my page div to 90 degree, which makes it landscape way and then perform window.print(), but the problem is, i开发者_如何学Go made it fool as basically it is PORTRAIT printing in landscape way, so the text is quite small, and fields also, i want that they should be zoomed, so is there anyway to zoom the page for printing.
Thanks Atif
Use a stylesheet specifically for printing
<link rel="stylesheet" media="print" href="print.css"/>
or media queries
@media print {
body { font-size: 10pt }
}
@media screen {
body { font-size: 13px }
}
@media screen, print {
body { line-height: 1.2 }
}
精彩评论