search

Home  >  Q&A  >  body text

javascript - Is the width of one pixel in ppi equal to 1px?

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?

我想大声告诉你我想大声告诉你2804 days ago656

reply all(1)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-19 10:38:52

    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

    reply
    0
  • Cancelreply