Skip to content

Use rem in mobile web according to design's width with less.js.

Notifications You must be signed in to change notification settings

jiangshaokun/rem.less

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Use rem in mobile web according to design's width with less.js.

移动web响应式适配方案(基于媒体查询和less

How to use

  1. Download rem.less
  2. Use in your less file
  @import "rem.less";
  .UseRem(750); /* 750(px) */
  
  body {
    font-size: .16rem; /* 16px in design */
  }

About

Use rem in mobile web according to design's width with less.js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages