Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

微信小程序获取系统信息接口返回的屏幕rpx和px的比例(pixelRatio)并不可靠 #2

Open
xdliyushen opened this issue Nov 11, 2018 · 0 comments

Comments

@xdliyushen
Copy link
Collaborator

解决办法:利用小程序固定宽度为750rpx的特点,在获取到窗口宽度后,用750/窗口宽度计算rpx与px的比例。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant