js判断苹果安卓操作系统,js更换css

//判断是哪个操作系统
if(plus.os.name=="Android"){
var lsyshowline=document.getElementById("lsyshowline");
lsyshowline.style.cssText = 'line-height: 1.1rem;font-size:0.75rem;';

}else{
var lsyshowline=document.getElementById("lsyshowline");
lsyshowline.style.cssText = 'line-height: 1rem;';

}

posted @ 2019-05-25 10:04  小平头~  阅读(361)  评论(0编辑  收藏  举报