# vw-rem **Repository Path**: adam_chuan/vw-rem ## Basic Information - **Project Name**: vw-rem - **Description**: 结合vw和rem开发H5页面 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-28 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: H5, rem ## README # rem ## Project setup ``` npm install ``` ### Compiles and hot-reloads for development ``` npm run serve ``` ### Compiles and minifies for production ``` npm run build ``` ### Lints and fixes files ``` npm run lint ``` ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). ### 项目用stylus css预处理器来进行css开发 ### 项目设计图以iphone6为基准即750px,根元素的基准值设置为75px,可以得出根元素的大小为: ``` $vm_fontsize = 75 $vm_design = 750 html { font-size: ($vm_fontsize / $vm_design) * 100vw } ``` ### 页面元素的rem转换 ``` rem(x) (x / $vm_fontsize) * 1rem ```