Some summary of mobile end combat

Source: Internet
Author: User

What is the difference between the layout of the mobile board and the PC board? My understanding is that the mobile side of the layout is relatively narrow, font images, etc. should be large (in order to display the small screen on the phone clearly), and should be adapted to a range of different types of mobile phones.

How to do adaptive mobile phone layout I used a new statement in this case:

<meta content= "width=750, maximum-scale=1.0, User-scalable=no" name= "viewport" >

This statement allows the phone to adapt to the width of the 750px and does not allow zooming in and out.

There are also the media queries that were made last time (changes to the style when the terminal is changed) can also be adaptive.

Mobile phone and PC side is different and here the hover countactive的效果。

In addition the picture sprite (Sprite chart) also has advantages and disadvantages.

Advantages of saving bandwidth, with some plug-ins can be more convenient to use.

The disadvantage is that the background can not be fine-tuned (adjusted easy to display to other pictures) cannot be repeated cannot use IMG display etc.

REM and EM are also self-adapting weapons.

They can change one value to make other values change.

Next is to make the previous project to adapt to the PC PD mobile phone, I hope this time can improve their strength.

Some summary of mobile end combat

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.