1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee

小细节调整

This commit is contained in:
2022-07-29 20:33:57 +08:00
parent e8e5f68c5b
commit aeee1b77f3
7 changed files with 66 additions and 3 deletions

View File

@@ -22,3 +22,11 @@
font-size: 10px;
display: inline-block;
}
.bottom-placeholder {
height: 60px;
font-size:13px;
color: #999;
display: grid;
place-items: center;
}

View File

@@ -0,0 +1,24 @@
function isMobile() {
var userAgentInfo = navigator.userAgent;
var mobileAgents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
var mobile_flag = false;
//根据userAgent判断是否是手机
for (var v = 0; v < mobileAgents.length; v++) {
if (userAgentInfo.indexOf(mobileAgents[v]) > 0) {
mobile_flag = true;
break;
}
}
// var screen_width = window.screen.width;
// var screen_height = window.screen.height;
// //根据屏幕分辨率判断是否是手机
// if (screen_width > 325 && screen_height < 750) {
// mobile_flag = true;
// }
return mobile_flag;
}