CSS的现实世界单位的准确性如何? [英] How accurate are CSS's real-world units?

查看:155
本文介绍了CSS的现实世界单位的准确性如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆