Herey。
不同的设备每英寸具有不同数量的像素。如果在设备像素中给出CSS尺寸,则英寸将非常不同。为了与像素密度较低的旧时代的兼容性,并且在像素中给出了相似的设备和CSS尺寸,CSS尚未丢弃其像素单元,但已将其预期的含义更改为所谓的Reperence
referencePixel
。从28英寸远的地方观察时,参考像素应对应于约0.0213度的视觉角度。但是,由于几个原因,(忠实于px
和
cm
大多数移动设备告诉浏览器一个不正确的- >
Scale),在Windows上,使用标志等标志来进一步偏见,或使用ctrl+++
+或
Ctrl+鼠标+鼠标。 用户可以在触摸屏或触摸板上捏缩质。
devicePixelRatio
s of your device and/or of the simulated device should be taken into account in order to undo the browser's handling of the devicePixelRatio
of your device (which it might perform even during a DevTools device simulation - I haven't checked whether it does nor whether DevTools are ideal for this) and/or simulate the browser's handling of the --force-device-scale-factor=4
of the simulated device.以英寸为单位的物理尺寸:考虑屏幕的蛋白尺寸。我们稍后可以在此处添加详细信息。无论如何,DevTools似乎都没有做两个。