移动端的转屏

var clientWidth = window.screen.width;
var clientHeight = window.screen.height;
var maxValue;
clientWidth < clientHeight ? $("html").css("font-size", 100 * (clientWidth / 375)) : $("html").css("font-size", 100 * (clientHeight / 375));
clientWidth < clientHeight?maxValue = clientHeight:maxValue = clientWidth;

posted on 2016-11-26 17:43  sunnie_c  阅读(105)  评论(0编辑  收藏  举报