我应该使用pt还是px? [英] Should I use pt or px?

查看:800
本文介绍了我应该使用pt还是px?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CSS中 pt px 之间有什么区别?

What is the difference between pt and px in CSS? Which one should I use and why?

推荐答案

这里有一个非常详细的解释他们的区别

Here you've got a very detailed explanation of their differences

http://kyleschaeffer.com/development/css-font-size-em-vs-px-vs-pt-vs/

The jist (来自)

The jist of it (from source)



像素是固定大小的单位,用于屏幕媒体以在计算机屏幕上读取)。像素代表图片元素,你知道,一个像素是一个小正方形在你的屏幕上。


传统上用于打印介质(要打印在纸张上的任何东西等)。一个点等于1/72英寸。点与像素很像,因为它们是固定大小的单位,不能在大小上缩放。

Pixels are fixed-size units that are used in screen media (i.e. to be read on the computer screen). Pixel stands for "picture element" and as you know, one pixel is one little "square" on your screen. Points are traditionally used in print media (anything that is to be printed on paper, etc.). One point is equal to 1/72 of an inch. Points are much like pixels, in that they are fixed-size units and cannot scale in size.

这篇关于我应该使用pt还是px?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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