- npm install pixelfit
- 导入pixelfit
- import Pixelfit from 'pixelfit'
- 实例化 Pixelfit 并传入参数
- const pixelfit = new Pixelfit({type:'m',window,width:750})
- 使用公用方法
- pixelfit.px2rem(100)
andrewwang0318 / pixelfit Goto Github PK
View Code? Open in Web Editor NEW用于适配屏幕像素的js函数库
License: MIT License