Web App responsive font settings! My opinion of REM

Source: Internet
Author: User

Before doing desert education, direct to the design map, and then rape, scale processing. Simple. Straight, Rough! However, development is fast. ...... Once!

But that is, now developed, as the industry conscience: can't do that! (That was forced.)

First look at the code:

@media screen and (max-width:362px) and (min-width:330px) {

html{font-size:60%;}
. top-banner{
font-size:15px
//}
. btn-download{
margin-left:5%;
//}
}

@media screen and (max-width:330px) {
html{font-size:53.333331%;}
. top-banner{
Font-size:14px
//}
. btn-download{
margin-left:4%;
//}
}

Because my plan is 750,iphone6 design!

As for how to get the figures out?

We went to. The default browser font is 16 pixels. 1/16=62.5

360/375*62.5%=60%

Before the black, do response-style pictures, padding-top, is a reason ha!!

In this way, mom, will never have to write, each class font pull!

Of course, this is a team work.

Encounter pig-like interaction, cat-like design ...

You're the only one dead!

All, firmly believe!!

Better be a cow, not a chicken!

This article is written in a long time ago, or moved out to share with you, reprint please indicate the source Zhou Lujun personal website

: Web App responsive font settings! My opinion of REM

Web App responsive font settings! My opinion of REM

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.