javascript - The resolution of iPhone5 is 640*1136, what are the units of this pair of values?
我想大声告诉你
我想大声告诉你 2017-05-19 10:36:51
0
2
659

The resolution of iPhone5 is 640*1136. Are the values ​​here in px? That is, px in web design, or dp as the unit. I searched a lot of information on Baidu, but the more I looked at it, the more confused I became.

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

reply all(2)
phpcn_u1582

is pixel px

世界只因有你

Yes, it’s pixels, but this is a retina screen, which means more pixels are compressed into the screen.
For example, the design drawing of iPhone 4 is 640 wide, but it is actually 320 wide.
But that’s just a theory. In practice, mobile terminals need to adapt to different screens.
So when making web pages, you need to use percentage flow layout or css3 flexible box layout to adapt.

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