1. //判断手机环境
    2. var u = navigator.userAgent, app = navigator.appVersion;
    3. var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器
    4. var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
    5. if(isiOS && screen.height >= 812){
    6. //iphone x
    7. $('.DG_midMid').css("margin-bottom", "68px")
    8. $('.DG_bottom').css({"padding-bottom":"34px","padding-top":"34px"});
    9. var oMeta = document.createElement('meta');
    10. oMeta.content = 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no,viewport-fit=cover';
    11. oMeta.name = 'viewport';
    12. document.getElementsByTagName('head')[0].appendChild(oMeta);
    13. };