javascript - Is the width of one pixel in ppi equal to 1px?
我想大声告诉你
我想大声告诉你 2017-05-19 10:36:52
0
1
637

ppi: pixels per inch, the number of pixels that can be displayed per inch on the screen, that is, the screen pixel density. Is the width of one pixel equivalent to 1px in web design?

我想大声告诉你
我想大声告诉你

reply all(1)
仅有的幸福

Yes, 1 pixel is 1px.
However, the retina screen compresses more pixels into the screen, so it requires adaptive layout such as fluid layout and flexible box layout.
Take mobile phones as an example:
iphone6, 4.7 inches, screen 750X1334, ppi: 326
Honor Play 4, 5 inches, screen 720X1280, ppi: 294

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template