Skip to content
New issue

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

关于rem.js的问题 #456

Open
jslyzx opened this issue Jan 15, 2019 · 3 comments
Open

关于rem.js的问题 #456

jslyzx opened this issue Jan 15, 2019 · 3 comments

Comments

@jslyzx
Copy link

jslyzx commented Jan 15, 2019

docEl.style.fontSize = 20 * (clientWidth / 320) + 'px';
这里的320是为什么,设置成375切图的时候不是更方便吗,因为clientWidth一般是375的整数倍

@bailicangdu
Copy link
Owner

当时以iphone5为基准,现在这种方式已经落伍了,postcss可以帮我们做这些

@jslyzx
Copy link
Author

jslyzx commented Jan 15, 2019

@bailicangdu 手淘团队的flexible方案呢

@bailicangdu
Copy link
Owner

他们自己也不推荐用了,现在vw兼容性很好,推荐使用vw

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

No branches or pull requests

2 participants