Skip to content

VincentCWLOVE/Mobile_Adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mobile_Adapter

使用create-react-app的前端适配方案

  1. pxrem

  2. pxvw 或者 pxvh

  使用 `create-react-app`脚手架创建项目或者使用本例中两个示例模板创建(`npm install`)
  根据不同的适配方案,使用不同的文件(`rem_file`或`vw_vh_file`)
  在`src`中引入 `flex.js`
  在 `index.js`中引入 `flex.js`
  在 `node_modules`文件夹中找到`react-script`文件夹,修改`config`目录

About

移动端适配方案(rem 和 vw/vh)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published