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. i…