插件新增

1. post-css-to-viewport: 移动端适配方案, 将px转换成视口单位vw

2. rem 适配

const deviceWidth = document.documentElement.clientWidth || document.body.clientWidth;
    document.querySelector('html').style.fontSize = deviceWidth / 7.5 + 'px';

  

posted @ 2021-03-04 22:04  IT—小子  阅读(34)  评论(0编辑  收藏  举报