Frage

I'm wondering what is happening when you print an html page in the different browsers (IE9++).

Do the different browsers refresh the page re-executing the javascript (implying re-executing some servers calls) ?

How to know you're refreshing -if - for a print in JS ?

War es hilfreich?

Lösung

No, the page is not refreshed when printed. You can however apply a special stylesheet that is only valid for print use. For example:

@media print {
    p { font-family:serif; color: black; font-size:12pt }
}

See also http://coding.smashingmagazine.com/2011/11/24/how-to-set-up-a-print-style-sheet/

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top