質問

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 ?

役に立ちましたか?

解決

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/

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top