vue2-elm icon indicating copy to clipboard operation
vue2-elm copied to clipboard

关于rem.js的问题

Open jslyzx opened this issue 6 years ago • 3 comments

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

jslyzx avatar Jan 15 '19 03:01 jslyzx

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

bailicangdu avatar Jan 15 '19 07:01 bailicangdu

@bailicangdu 手淘团队的flexible方案呢

jslyzx avatar Jan 15 '19 07:01 jslyzx

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

bailicangdu avatar Jan 15 '19 08:01 bailicangdu