rpx与px之间的转换

px与rpx之间转换的公式:px = rpx / 750 * wx.getSystemInfoSync().windowWidth;

rpx =   px *(750/ wx.getSystemInfoSync().windowWidth)

 

参考:https://blog.csdn.net/qq_41080490/article/details/80268298

https://blog.csdn.net/m0_37865510/article/details/108245083

 

posted @ 2021-12-29 14:33  小小强学习网  阅读(2518)  评论(0编辑  收藏  举报