문제

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