pxpx
Zurück zur Werkbank

Device Pixel Ratio: The Retina Multiplier

A CSS pixel is not a physical pixel. On a 2x Retina display, every CSS pixel becomes four physical pixels. Use the buttons to see the grid multiply.

逻辑像素(CSS)

物理像素(2x)

同样的 CSS 尺寸,2x 屏幕用 4 倍物理像素渲染,所以高清屏需要更大的导出图。

Logical vs physical

DPR = physical pixels ÷ CSS pixels. A 400×300 CSS image at DPR 2 needs an 800×600 bitmap to stay sharp; at DPR 3 it needs 1200×900.

Exporting for Retina

Export at 2x your intended CSS size for most devices, 3x for flagship phones. Then compress to avoid bloated pages. Our resize tool makes this a one-step preset.

Related pages