pc端适配
关于pc端适配走了很多弯路。
现有设计图 1920
方案一:
1.使用postcss-pxtorem + amfe-flexible
2.创建postcss.config.js 文件
postcss.config.js配置如下
module.exports = {
plugins: {
"postcss-pxtorem": {
rootValue: 192, // 设计图尺寸
propList: ["*", '!border
原创
2020-08-26 09:37:45 ·
863 阅读 ·
1 评论