PHP 3G page for mobile phone development. For more information, see u010337219 at 2013-08-3015: 22: 17. edit 1. the web page automatically adapts to mobile phones with Resolution 2. the website can identify whether the mobile phone system is Android or ios3. the website can pull more information asynchronously (js, ajax). I would like to ask how to display the refreshing page and continuously develop 3G mobile phone pages in PHP, questions about prawns
This post was edited by u010337219 at 15:22:17. 1. the webpage automatically adapts to the resolution of mobile phones.
2. the website can identify whether the mobile phone system is Android or ios.
3. The website can load more information (js and ajax) asynchronously. I would like to ask how to display the history of refreshing pages.
For details, refer to the following link:
------ Solution --------------------
1)
Do not use absolute width, relative font size, flow layout, select to load CSS, adaptive image.
2)
/*
* Smartphone browser version information:
*
*/
Var browser = {
Versions: function (){
Var u = navigator. userAgent, app = navigator. appVersion;
Return {// mobile terminal browser version information
Trident: u. indexOf ('think')>-1, // IE kernel
Presto: u. indexOf ('Presto ')>-1, // opera kernel
WebKit: u. indexOf ('applewebkit')>-1, // Apple, Google kernel
Gecko: u. indexOf ('Gecko ')>-1 & u. indexOf ('k') =-1, // Firefox kernel
Mobile :!! U. match (/AppleWebKit. * Mobile .*/)
------ Solution --------------------
!! U. match (/AppleWebKit/), // whether it is a mobile terminal
Ios :!! U. match (/(I [^;] +; (U ;)? CPU. + Mac OS X/), // ios terminal
Android: u. indexOf ('Android')>-1
------ Solution --------------------
U. indexOf ('Linux ')>-1, // android terminal or uc Browser
IPhone: u. indexOf ('iPhone ')>-1
------ Solution --------------------
U. indexOf ('Mac')>-1, // whether the browser is iPhone or QQHD
IPad: u. indexOf ('iPad ')>-1, // whether iPad
WebApp: u. indexOf ('Safari ') =-1 // whether the web should be a program with no header or bottom
};
}(),
Language :( navigator. browserLanguage
------ Solution --------------------
Navigator. language). toLowerCase ()