"HTML5 mobile Web Development" about mobile development

Source: Internet
Author: User

1.Google Analytics Tool Usage: Add Google analytics to your post-registration page to analyze which devices are accessing the site or which pages have a larger

2.MODERNIZR can detect browser support for HTML5 elements. You can tell if you support Localstorage, etc.

The 3.HTML5 element is displayed as a block-level element article,aside,nav,section{Display:block in an older version of IE browser;}

With a fixed layout and fluid layout at the 4.PC end, we always use fluid layout in our mobile site, which allows you to adapt your site to different device sizes.

For example: Vertical screen display a column, the horizontal screen display 2 columns (reasonable use of each pixel)

5. Clear the default style for HTML5 elements

Article,aside,section ... {margin:0; padding:0;border:0;font-size:100%;font:inherit; vertical-align:baseline;}

6. Page Reset font size:-webkit-text-size-adjust:none;

-webkit-text-size-adjust:none, if accessed on a PC desktop or through a browser other than a mobile device, will cause the page's zoom function to be disabled.

iphone:html{-webkit-text-size-adjust:100%;}

Microsoft html{-ms-text-size-adjust:100%;}

7. Media Query

@media screen and (min-width:320px) {}

8. Under the same LAN, you can use XAMPP to configure the mobile development environment (local Web site service) to confirm that the computer and mobile devices are on the same wireless network. The IP address provides access to the

9. If your primary users use the iphone and mobile safari, testing on a desktop computer can save a lot of time. Open Safari, Preferences---advanced bar---development---user agent---Mobile safari 3.1.3-iphone

10. Launch the web app via the interface icon

Retina screen with 114*114 icons

<link rel= ' apple-touch-icon-precomposed ' sizes= ' 114*114 ' href= ' apple-touch-icon-114*114-precomposed.png ' >

ipad uses 72*72 icons

iphone and Android 2.1 or later devices that do not use the retina screen, use the 57*57 icon

For Nokia Symbian Devices, a shortcut icon is only used to tell the location of the icon on the mobile device.

<link rel= ' shortcut icon ' href= ' img/1/apple-touch-icon.png ' >

HTML5 mobile Web development for mobile development

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.