search

Home  >  Q&A  >  body text

javascript - The resolution of iPhone5 is 640*1136, what are the units of this pair of values?

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.

我想大声告诉你我想大声告诉你2815 days ago682

reply all(2)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-19 10:38:51

    is pixel px

    reply
    0
  • 世界只因有你

    世界只因有你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.

    reply
    0
  • Cancelreply