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

荣耀平板v6,sp14适配字体偏大(真实设备),红米k30看起来正常 #24

Closed
RamboMing opened this issue May 26, 2021 · 2 comments

Comments

@RamboMing
Copy link

RamboMing commented May 26, 2021

截图看起来两个设备适配都没有问题,但是实质在真机上看平板V6 字体要大好多
honor-v6
红米k30
真机对比

@wildma
Copy link
Owner

wildma commented May 29, 2021

就是这种效果的,原理是等比缩放,同一套设计图用在手机和平板等比缩放后就是这样,如果想在平板上字体也显示小的,只能单独对平板出图。

可以再看一遍文章中说的这句话:“smallestWidth 限定符适配的效果是让不同分辨率和密度的设备上能达到以设计图等比缩放的适配,如果设备与设计图相差太大时并不能达到很好的适配效果,需要单独出图,其他屏幕适配方案也是一样的。”

@RamboMing
Copy link
Author

哦,了解,谢谢

@wildma wildma closed this as completed Jun 2, 2021
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