Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

物理像素、设备独立像素、CSS 像素 #37

Open
byodian opened this issue Aug 21, 2019 · 0 comments
Open

物理像素、设备独立像素、CSS 像素 #37

byodian opened this issue Aug 21, 2019 · 0 comments
Labels

Comments

@byodian
Copy link
Owner

byodian commented Aug 21, 2019

CSS 像素(虚拟)和实际的屏幕物理像素之间的关系

  • Physical Pixels
  • Device Independent Pixels (Logical Pixels)
  • Device Pixels Ratio
  • Points

物理像素 (Physical Pixels)

设备屏幕由一个个的物理像素点组成,一个点(pt)等于 1/72 英寸。平时,手机或电脑的分辨率表示的就是设备的物理像素,比如 iPhone6P/6sP/7P 的屏幕分辨率为 1080 x 1920 。

1pt = 1/72 inches

设备独立像素 (Device Independent Pixels)

设备独立像素,又叫逻辑像素(logical Pixels)或虚拟像素,用于逻辑上衡量长度的单位,由底层系统的程序使用,会由相关系统转换为物理像素。CSS 像素是设备独立像素的一种。

参考

@byodian byodian changed the title 浏览器视口和 浏览器视口 Aug 22, 2019
@byodian byodian changed the title 浏览器视口 浏览器视口的理解 Aug 24, 2019
@byodian byodian changed the title 浏览器视口的理解 物理像素、设备独立像素、CSS 像素、逻辑像素、设备像素比、PPI、DPI Aug 24, 2019
@byodian byodian changed the title 物理像素、设备独立像素、CSS 像素、逻辑像素、设备像素比、PPI、DPI 物理像素、设备独立像素、CSS 像素、逻辑像素、设备像素比、PPI、DPI、视口 Aug 24, 2019
@byodian byodian changed the title 物理像素、设备独立像素、CSS 像素、逻辑像素、设备像素比、PPI、DPI、视口 物理像素、设备独立像素、CSS 像素、设备像素比、PPI、DPI、视口 Aug 24, 2019
@byodian byodian changed the title 物理像素、设备独立像素、CSS 像素、设备像素比、PPI、DPI、视口 物理像素、设备独立像素、CSS 像素 Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant