Mobile REM Layout

Source: Internet
Author: User
<span id="Label3"></p><p><p> <!--?xml version="1.0" encoding="UTF-8" standalone="no"?--></p></p>Mobile Page--resolution of Special chaos: 1. Fixed width 320px--advantages: simple, disadvantage: can not adapt to 2. percent-advantages: able to adapt to various resolutions, disadvantages: too troublesome 3.rem--advantages: convenient, adapt to various resolutions (first define a "root size" html{font-size : 20px;} Rem: look at the font size of the HTML (font-size of the HTML First) html{font-size:20px;}<br>transduction, Basic width with 320<strong><strong>note: If you use REM transduction then do not use px, and Em. </strong></strong><strong><strong>Rem--cannot appear in any unit other than REM</strong></strong>Root->em Root HTML<strong><strong><meta name= "viewport" content= "width=device-width,initial-scale=1,user-scalable=no"/></strong></strong><strong><strong>Initial:</strong></strong>[?‘ N??? L]device: [d? ' va?s]<strong><strong>Viewport Viewport</strong></strong><strong><strong>width (device)</strong></strong><strong><strong>Initial-scale Initializing the zoom ratio</strong></strong><strong><strong>user-scalable User Scaling</strong></strong>

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.