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