CSS的现实世界单位的准确性如何? [英] How accurate are CSS's real-world units?
问题描述
我开始使用CSS的现实世界单位进行实验,特别是在
和 cm
I'm beginning experiments with CSS' real-world units, specifically, in
and cm
, for purposes of printing.
这些单位是基于它们在屏幕上的显示方式还是如何由打印机打印?
Are these units based on how they will be displayed on-screen or how they will be printed by a printer? How accurate are these units?
推荐答案
根据W3C,只有 em
, px
和%
推荐用于屏幕,其他用于打印。
According to W3C, only em
, px
and %
are recommended for screen, the others for print.
因此,在打印应用程序中,在
和 cm
测量可以精确准确。
Therefore, in a print application, the in
and cm
measurements could be precisely accurate.
有关此类应用程序的一篇很好的文章:
http://meyerweb.com/eric/articles/webrev/200001.html
There is an excellent article on such applications here:
http://meyerweb.com/eric/articles/webrev/200001.html
这篇关于CSS的现实世界单位的准确性如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!