ios – 在Chrome上模拟iPhone X.

ios – 在Chrome上模拟iPhone X.,第1张

概述我需要在Chrome上模拟iPhone X.我找到了以下信息: Height: 5.65 inches (143.6 mm)Width: 2.79 inches (70.9 mm) 你能告诉我应该给下面的表格提供哪些值? iPhone X sepecifications 这就是Device pixel ratio (DPR) If you want to emulate a Retina dev 我需要在Chrome上模拟iPhone X.我找到了以下信息:

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

你能告诉我应该给下面的表格提供哪些值?

iPhone X sepecifications

这就是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.全部内容,希望文章能够帮你解决ios – 在Chrome上模拟iPhone X.所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1075394.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存