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