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

目前成熟方案:flexible #3

Open
q27488 opened this issue Nov 25, 2016 · 2 comments
Open

目前成熟方案:flexible #3

q27488 opened this issue Nov 25, 2016 · 2 comments

Comments

@q27488
Copy link

q27488 commented Nov 25, 2016

1.使用flexible :flexible
2.ios的 dpr不为1才是关键难调!

@CFM880
Copy link

CFM880 commented Nov 28, 2016

设置高度感觉不好弄,flex和这个配合使用应该可以解决吧,才入坑前端两周,有理解错的地方,求指点

@hbxeagle
Copy link
Owner

hbxeagle commented Dec 5, 2016

写这篇主要是针对rem在计算中出现的问题,毕竟flexible也需要rem的配合。flex确实很好使,但在一些Android手机上有些属性比较坑。针对dpr大于1的情况是需要特殊处理,比如1px边框问题,是要判断dpr后加单独的样式做适配。
另外,CFM880提到的高度的问题,我猜测是在遇到全屏设计页面时觉得不好弄吧。本人的一点经验,在切图的时候,从模块、模块包围结构、左右相对位置、前景、后景和设计意图等综合考虑,使用不同的方案。希望有帮助。

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

3 participants