1.6.0
任意环境
https://github.com/ant-design/ant-design-mobile/wiki/HD
高清方案中提到默认1rem=100px ,也就是等于说antd的设计稿是1000px。
但我的设计稿是750px的。
在pxtorem 插件中设置rootValue为100还是设置75都会导致其中一个转换不正确。
(设置75,正常还原了设计稿,但antd组件显示偏大。设置为100,antd显示正常,但设计稿还原偏小。)
我要怎么做呢才能即还原设计稿又正常显示antd呢?
正常转换px到rem
未正常转换px到rem
实在万不得已开issue来问使用方法,翻看文档和教程和群友,好像都默认大家使用的设计稿是1000px的。😂
It will be better to write your issue/comment in English, so more people can understand you.
And this means that more people can help you or benefit from your issue/comment.
See: https://github.com/ant-design/ant-design/issues/4897
这篇文章我看了不下10遍了😂。 能否点拨一下