A dpi (Dots Per Inch) indicator must be used when converting metric length units to screen resolution.
The default in the 96dpi,mac system for Web page printing on Windows systems is 72dpi.
A4 paper size is 210x297mm, 1 inch =25.41mm conversion, that is 8.264x11.688 inch
So, the resolution of A4 paper 96dpi is 794x1123, which is the pixel we need when we make the Web page.
Ideally, the resolution of the largest element in the Web page is 0mm when the margin is printed: 794x1123
<div style= "width:794px;height:1123px;border:1px solid #000000;" ></div>
However, the printer is not full-width printing, there will always be margins, so we have to make a page when the page must be taken into account margins.
The print margins of various browsers are set differently, ie prints the default margins of 19.05mm,
Therefore, the resolution of the maximum elements in a page page designed for IE print pages should be: 649x978
<div style= "width:649px;height:978px;border:1px solid #000000;" ></div>
Original address: http://blog.csdn.net/iscandy/article/details/2391976
Pixel resolution calculation of A4 paper [go]