手机淘宝自适应方法

代码地址:https://github.com/amfe/lib-flexible

meta:

<meta name="viewport" content="width=device-width, user-scalable=no">

css:

$baseFontSize = 75

  px2rem(name, px) {

    {name}: (px / $baseFontSize) * 1rem

  }

  pxrem(name, px) {

    {name}: (px / $baseFontSize) * 1rem !important

  }

例:px2rem('height', 90)