iPhoneX的px尺寸如何换算成rpx呀?

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:21 1097 0 全屏看文

AI助手支持GPT4.0

iPhoneX的px尺寸如何换算成rpx呀?

学生团队没有经验,设计组给的是iphoneX的尺寸,在敲代码的时候,如何转换成rpx尺寸,跪求各位大佬解答

The student team has no experience. The design group gives the size of the iPhone X. when typing the code, how to convert it into rpx size? Please kneel down and ask for answers

回答:

圣殿骑士:

rpx 对等的都是 750rpx = 全屏,所以建议设计稿宽度都做成750px

都是正比例缩放,可以无视是什么 手机,什么屏幕

反正 750rpx就是全屏

这样简单些

Distance:

1px = 2rpx

子不语:

你们直接用rpx不行么?

请学会如何「提问」(👈戳我)

-EOF-

AI助手支持GPT4.0