Giter VIP home page Giter VIP logo

rem-moka's Introduction

rem-moka

  • @param designWidth 设计稿宽度 一般来说iPhone6是750 如果缩小就变成了375px

  • @param oneRem2Px 1rem对应多少px

  • @param mobileMaxPx 移动端最大像素数

  • @param fixDefaultFontSize 是否重置Android因为系统放大或者缩小字体带来的影响

  • @param fix1px 是否通过meta标签的scale处理1px过于粗的问题

  • @param resetPcDpr 重置PC端DPR

  • @param resetPcWidth 重置PC端计算所用的视口宽度

  • @param pxMaxPx PC端最大像素数

启动方式

gulp

http://localhost:9998/demo/index.html

http://localhost:9998/demo/norem.html

可以查看使用了rem与没有使用rem的状态

查看效果

https://geeknull.github.io/rem-moka/demo/index.html

https://geeknull.github.io/rem-moka/demo/norem.html

rem-moka's People

Contributors

geeknull avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.