开发者

Html printed page resolution (or size in pixels)

开发者 https://www.devze.com 2022-12-11 13:42 出处:网络
Does anybody know what is the resolution that will be used to render a printed HTML page. I\'d like to know what size (in centimeters or inches) will be a printed image of say 500x500pixels. I know th

Does anybody know what is the resolution that will be used to render a printed HTML page. I'd like to know what size (in centimeters or inches) will be a printed image of say 500x500pixels. I know this value will change if I set the zoom value (IE and FF), but I am interested in the default value (when zoom is at 100%).

Also, is there any way of controlling thi开发者_如何学JAVAs resolution from CSS?

Thanks


either 72ppi or 96ppi, depending on combination of OS/browser. Margins are an issue too.

If this is for a site with login users, get them to set their resolution, or try to guess from the browser. Remember that anyone can change this setting on their computer.


I think you can control the size, but not the resolution, of the printed page. Relevant units of size, for print css, would include

  • Centimetres (cm)
  • Millimetres (mm)
  • Points (pt)
  • Pica (pc)
  • Inches (in)
  • M (em)
  • X (ex)
0

精彩评论

暂无评论...
验证码 换一张
取 消