[Mini Program] 尺寸单位 rpx
单位 尺寸 program mini
2023-09-14 08:59:17 时间
So each phone's width is 750rpx. And according to the device ratio (width:height), we can calucalate the height in rpx.
For example
iPhone 5: 320px x 568px, 320px = 750rpx, therefore 1rpx = 0.42px. So the height of iPhone5 is 568 / 0.42 = 1352rpx.
iPhone X: 375px x 812px, 375px = 750rpx, therefore 1rpx = 0.5px. So the height of iPhone X is 812 / 0.5 = 1624rpx.
相关文章
- 149 亿市值暴跌至 55 亿、收入减少 13 亿至 8.5 亿:涉嫌单位行贿罪与董事长一起被起诉
- 嘉为蓝鲸入选信通院汽车云工作首批成员单位,助力“汽车云”高质量发展
- Java 实现读取出来的文件大小变成KB,MB,TB,PB大小,或者将大单位变成KB
- 带你玩转matlab单位换算
- 求职必看!一个好的工作单位的标准!
- MIT造出薄如纸的太阳能电池板,单位重量发电量提升17倍
- Linux获取系统时间:以秒为单位(linux获取时间秒)
- Oracle 单位:掌握技巧,提高工作效率!(oracle单位)
- Redis中超时设置的默认时间单位(redis 默认时间单位)
- Oracle精准时间调整以毫秒为单位(oracle 三位毫秒)