适配安卓手机浏览器时候,出现了input引起的页面变化,故思考对安卓进行适配,采用了如下方法,(因为vivo浏览器出现js识别故障)判断系统非ios来确认该系统为安卓
//解决安卓浏览器点击input时出现的页面异常状况
var u = navigator.userAgent;
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
if ($(window).width() < 900) {
if(isiOS == false){
$('body').css('height', $(window).height());
$('.top').css('height', $(window).height()*0.96 + 'px');
$('.bottom').css('height', $(window).height()*0.04 + 'px');
$('.topCenter').css('height', $('.top')[0].clientHeight + 'px');
$('.topCenterTop').css('height', $('.top')[0].clientHeight*0.05 + 'px');
$('.topCenterBottom').css('height', $('.top')[0].clientHeight*0.95 + 'px');
}
}