Some basic ideas in mobile development, and where to pay attention to the details of the techniques

Source: Internet
Author: User

1: In the touch device you need to use the DOM touch event. Do not need to use the Css:hover pseudo-class, but also because the finger is larger than the mouse, to be able to click on the element to do a larger

2: Optimize Picture:

To solve those users with small bandwidth or high traffic costs, you can optimize the loading of images by loading the appropriate images based on the user's screen size and resolution. You can use media queries to get height,width and pixel ratio on your screen.

Focus: The most suitable window: <meta name= "viewport" content= "Width=device-width, initial-scale=1, maximum-scale=1" >

In general, we need to focus on: fonts, aspect spacing, images (icons, pictures).

Vertical height and spacing using fixed values, blending in horizontal directions using fixed values and percentages, or using resilient layouts

Reference article: https://www.w3ctech.com/topic/979

http://ife.baidu.com/task/detail?taskId=11

Some basic ideas in mobile development, and where to pay attention to the details of the techniques

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.