Ant-design-mobile: 设计稿宽度是750px时要怎么如何配置pxtorem的rootValue?

Created on 10 Aug 2017  ·  4Comments  ·  Source: ant-design/ant-design-mobile

Version

1.6.0

Environment

任意环境

Reproduction link

https://github.com/ant-design/ant-design-mobile/wiki/HD

Steps to reproduce

高清方案中提到默认1rem=100px ,也就是等于说antd的设计稿是1000px。
但我的设计稿是750px的。
在pxtorem 插件中设置rootValue为100还是设置75都会导致其中一个转换不正确。
(设置75,正常还原了设计稿,但antd组件显示偏大。设置为100,antd显示正常,但设计稿还原偏小。)
我要怎么做呢才能即还原设计稿又正常显示antd呢?

What is expected?

正常转换px到rem

What is actually happening?

未正常转换px到rem


实在万不得已开issue来问使用方法,翻看文档和教程和群友,好像都默认大家使用的设计稿是1000px的。😂

All 4 comments

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遍了😂。 能否点拨一下

Was this page helpful?
0 / 5 - 0 ratings