Giter VIP home page Giter VIP logo

h5ease's Introduction

该方案帮助开发者能像开发PC一样来做 mobile web 开发,开发者可以脱离适配的约束,完全按照设计稿的尺寸进行编写,so~

妈妈再也不用担心我没做过移动开发了

Use In Production

  1. 设置 viewport meta 标签 <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0">
  2. html 标签上设定设计宽度(data-design-width),如果留空,默认按照 750px 计算。
  3. head 标签里尽量靠前引入 rem.js,减少重绘引起的页面的闪动。
  4. 配合 gulp 转换 px 到 rem,并对 border-width 做高清处理。

建议使用线上的通用链接: http://img5.cache.netease.com/utf8/3g/util/rem.min.js

That's all!

Need a demo ?

npm start

然后浏览器打开 http://localhost:3000/ 查看。

h5ease's People

Contributors

re54k avatar

Stargazers

LY avatar

Forkers

touchx

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.