gpt4 book ai didi

ios - 在 Chrome 上模拟 iPhone X

转载 作者:可可西里 更新时间:2023-11-01 04:23:08 28 4
gpt4 key购买 nike

我需要在 Chrome 上模拟 iPhone X。我找到了以下信息:

Height: 5.65 inches (143.6 mm)
Width: 2.79 inches (70.9 mm)

你能告诉我应该为下面的表格赋予哪些值吗?

iPhone X sepecifications

unknown form elements

这就是Device pixel ratio (DPR)

If you want to emulate a Retina device from a non-Retina machine or vice versa, adjust the Device pixel ratio. The device pixel ratio (DPR) is the ratio between logical pixels and physical pixels. Devices with Retina displays, such as the Nexus 6P, have higher pixel density than standard devices, which can affect the sharpness and size of visual content.

最佳答案

根据 the iPhone X Human Interface Guidelines ,你应该输入:

  • 375 代表宽度
  • 812 代表高度
  • 3 代表设备像素比

因为比例因子是 3,你应该除以物理分辨率 (1125px × 2436px) 除以 3 得到 逻辑分辨率

对于用户代理字符串,查看this answer .

关于ios - 在 Chrome 上模拟 iPhone X,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47552632/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com