移动端自适应布局
rem布局动态改变html font-size值的方法,就足以实现移动端的适配了
阿里的flexible.js + makegrid.js有什么额外优势吗?
PHP中文网2017-04-17 13:13:03
I also think rem is enough, that’s what Meituan does. As for flexible.js + makegrid.js, I haven’t used them yet. I’ll go take a look that day.
迷茫2017-04-17 13:13:03
rem is mainly used to control font size. Of course, it can also be used to control height and width (not recommended personally).
makegrid is more controlled from the layout (I don’t like this way of handling adaptation through calculation)
巴扎黑2017-04-17 13:13:03
Personally, I think using rem is enough to adapt to the mobile phone. However, it is not recommended to use rem to change the font size. It is best only used for the layout of the frame.