Skip to content

lbjlsy/simple-flexible

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-flexible

mobile frontend simple rem responsive code 兼容UC竖屏转横屏,手淘那个lib-flexible.js有bug.可以简单使用我这个。

项目介绍

How to usage

复制整个文件代码,放在网页的head中。 不需要定义body的font-size值。

PX与REM的转换(区别于手淘版)

1rem = 100px

假如你有一个块是.box{width:120px;height:80px;} 转为rem则为.box{width:1.2rem; height:.8rem;}

生产使用flexible-min.js

about

微博:http://weibo.com/kujian

About

mobile frontend simple rem responsive code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 36.4%
  • JavaScript 34.0%
  • HTML 29.6%