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.
世界只因有你2017-05-19 10:38:51
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.