We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docEl.style.fontSize = 20 * (clientWidth / 320) + 'px'; 这里的320是为什么,设置成375切图的时候不是更方便吗,因为clientWidth一般是375的整数倍
docEl.style.fontSize = 20 * (clientWidth / 320) + 'px';
The text was updated successfully, but these errors were encountered:
当时以iphone5为基准,现在这种方式已经落伍了,postcss可以帮我们做这些
Sorry, something went wrong.
@bailicangdu 手淘团队的flexible方案呢
他们自己也不推荐用了,现在vw兼容性很好,推荐使用vw
No branches or pull requests
docEl.style.fontSize = 20 * (clientWidth / 320) + 'px';
这里的320是为什么,设置成375切图的时候不是更方便吗,因为clientWidth一般是375的整数倍
The text was updated successfully, but these errors were encountered: