diff --git a/.postcssrc.js b/.postcssrc.js new file mode 100644 index 0000000..f35ba44 --- /dev/null +++ b/.postcssrc.js @@ -0,0 +1,9 @@ +module.exports = { + plugins: { + autoprefixer: {}, + 'postcss-px2rem-exclude': { + remUnit: 192,//1rem = 75px(iphone6的设计稿如此设置) + // exclude: /node_modules/i //忽略node_modules目录下的文件 + } + } +} diff --git a/index.html b/index.html index 17fc555..712fbee 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,9 @@ + +