+ 2
How I do to print direct html?
I need print direct in html. because when I will go to print. popup the confirm print window
8 Réponses
+ 13
Espero que te sirva mi respuesta, es lo que te entendí, si no hacé tu pregunta en español y capaz te entiendo mejor 😊
+ 13
Yeah, me alegro 😄👌
+ 12
Use the media query in CSS to modify the print size or any property when the document is printed or viewed in print preview mode, like this:
@media print {
body {
background: #fff
color: #000
margin: 15px
padding: 5px;
border: 1pt solid #990505;
}
}
You can also specify in your HTML using classes what elements you wish to hide or show when printing. Like this:
@media print {
.show-for-print {
display: block !important; }
.hide-for-print {
display: none !important; }
}
And if you're using Foundation for different screen sizes (responsiveness), you can use Breakpoints.
+ 2
muchas gracias.😀 me sirvió, te lo agradezco mucho
+ 1
what exactly you want to do?
+ 1
I print web page to pot printer. I use window.print() but i need put the size. print size
+ 1
sorry i cant understand your english
+ 1
I need to specify the print size. window.print()