移动端自适应方案

http://caibaojian.com/mobile-responsive-demo.html

http://caibaojian.com/mobile-responsive-example.html

 

网易的用法:

var deviceWidth = document.documentElement.clientWidth;
if(deviceWidth > 640) deviceWidth = 640;
document.documentElement.style.fontSize = deviceWidth / 6.4 + 'px';
posted @ 2016-03-18 14:55  szchenrong  阅读(76)  评论(0)    收藏  举报