Why is the mobile end with REM rounded corners

Source: Internet
Author: User
REM is calculated based on the size of the Web page and, of course, through media queries.
For example, if your design is 720px wide, then your text will be the original size divided by 11.25, which corresponds to the following media query 720px, such as 16px will be 16/11.25 to calculate this. Before using the following code to put in your CSS file:
@media only screen and (max-width:1080px) {
HTML, Body {
font-size:16.875px;
}
}

@media only screen and (max-width:960px) {
HTML, Body {
font-size:15px;
}
}

@media only screen and (max-width:800px) {
HTML, Body {
font-size:12.5px;
}
}

@media only screen and (max-width:720px) {
HTML, Body {
font-size:11.25px;
}
}

@media only screen and (max-width:640px) {
HTML, Body {
font-size:10px;
}
}

Why is the mobile end with REM rounded corners

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.