You have to know the two CSS font properties

Source: Internet
Author: User
This time you have to know the two CSS font properties, the use of CSS font attributes of the considerations are what, the following is the actual case, together to see.

How to set different fonts for English and Chinese?

But all Chinese fonts contain English,
All English fonts are not included in Chinese,
This means that Chinese fonts can handle English, while English fonts cannot handle Chinese.

Note: If you want to set the font in English in the interface, then the English font must be written in front of Chinese

Supplement the most common fonts in enterprise development are the following

English: Arial/blackbody/Microsoft Ya Hei
English: "Times New Roman"/arial

Also need to know, is not the name is English must be English font

Because the Chinese font actually has its own English name, so is not the Chinese font mainly see can handle Chinese
Song Body SimSun
Blackbody Simhei
Microsoft Black Microsoft Yahei

Font-family: "Times New Roman", "Microsoft Jas Black",//Times New Roman: Alternative for English fonts  : "Microsoft Jas Black" for the Chinese font//because "Times new Roman" Font cannot handle Chinese fonts, So call the alternative "Microsoft Black" to deal with Chinese

Abbreviations for literal attributes

Abbreviation format:
Font:style Weight size family;
For example:
Font:italic bold 10px "in italics";

Note the point:

1. Some attribute values in this abbreviation format can be omitted
Sytle can be omitted
Weight can be omitted

2. In this abbreviated format, the position of style and weight can be exchanged

3. In this abbreviation format, some attribute values are not omitted.
Size cannot be omitted
Family cannot omit

The location of 4.size and family is not to be dropped.
Size must be written in front of family, and size and family have to be written at the end of all properties

Believe that you have read the case of this article you have mastered the method, more exciting please pay attention to the PHP Chinese network other related articles!

Recommended reading:

IOS WebView How to load htmlstring

HTML5 a little knowledge that is easy to overlook

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.