How the mobile side defines the font font-family

Source: Internet
Author: User

How the mobile side defines the font font-family

Chinese font Use system default, English with Helvetica

/**/body{font-family:Helvetica;}   

Refer to "Thinking of using fonts on the mobile side"

Mobile font Unit font-size Select px or REM

For devices that only need to be adapted to a mobile device, use the PX

For devices that need to be adapted to a variety of mobile devices, use REM, such as a device that only needs to be adapted to different resolutions, such as iphone and ipad.

REM Configuration reference:

html{Font-size:10px}@media screen and (min-width:321px) and (max-width:375px) {Html{font-size:11PX}} @media screen and (min-width:376px) and (max-width:414px) {Html{font-size:12PX} @media screen and (min-width:415px) and (max-width:639px) { html{font-size:15px} } @media screen and (min-width:640px) and (max-width:719px) {html{font-size:20px} @media screen and (min-width:720px) and (max-width:749px) {html{font-size:22.5px}html{font-size:23.5px}  @media screen and (min-width:800px) {html{font-size:< Span style= "color: #0000ff;" >25px}            

How the mobile side defines the font font-family

Related Article

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.