For more information about how to develop a 3G page for a mobile phone in PHP

Source: Internet
Author: User
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 ()

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.