新建跟平时做web网站时的php文件有区别吗?PHPWAP

解决方案 »

  1.   

    虽然不懂,但是php文件能有啥区别呢,无非就是前台显示调整呗
      

  2.   

    在头部加上这个。。<meta name="viewport" content="width=device-width; initial-scale=1.0; minimum-scale=1.0; maximum-scale=2.0;user-scalable=no;initial-scale=1.4;"/>   然后下面这个是判断客户端的function uaredirect(murl){
        try {
                if(document.getElementById("bd") != null){
                    return;
                }
                var urlhash = window.location.hash;
                if (!urlhash.match("fromapp")){
                    if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i))) {
                            location.replace(murl);
                    }
                }
            } catch(err){}
    }