vue 移动端屏幕适配

https://github.com/evrone/postcss-px-to-viewport/blob/master/README_CN.md
基本配置

// eslint-disable-next-line no-undef
module.exports = {
    plugins: {
        "postcss-px-to-viewport": {
            viewportWidth: 375,
            // viewportHeight: 667,
            unitPrecision: 2,
            viewportUnit: 'vw',
            selectorBlackList: [],
            minPixelValue: 1,
            mediaQuery: false
        }
    }
};

  

转载于:https://www.cnblogs.com/tongbiao/p/11281698.html

你可能感兴趣的:(vue 移动端屏幕适配)