Home  >  Q&A  >  body text

html5 - 移动端自适应布局 阿里的flexible.js和rem布局动态改变html font-size值的方法相比有什么优势?

移动端自适应布局
rem布局动态改变html font-size值的方法,就足以实现移动端的适配了
阿里的flexible.js + makegrid.js有什么额外优势吗?

天蓬老师天蓬老师2766 days ago513

reply all(3)I'll reply

  • PHP中文网

    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.

    reply
    0
  • 迷茫

    迷茫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)

    reply
    0
  • 巴扎黑

    巴扎黑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.

    reply
    0
  • Cancelreply