The font name (in English) and display name (Chinese) of the text body in the declaration:
Font-family:simsun, "the song Body";
Font-family: "Microsoft Yahei", "Microsoft Jas Black";
Font-family:stxihei, "Chinese fine Black", "Microsoft Yahei", "Microsoft Jas Black";
Never forget to declare English fonts, and English fonts should be in Chinese font before
Font-family:georgia, SimSun, "Song Body"
In the end, add the name of the English font family. Font families are broadly divided into two categories: non-liner sans-serif and serif serif
Font-family:georgia,simsun, "Song Body", serif;
Font-family:arial, "Microsoft Yahei", "Microsoft Jas Black", Sans-serif;
Compatible with different operating systems:
Font-family:helvetica, Tahoma, Arial, Stxihei, "Chinese fine Black", "Microsoft Yahei", "Microsoft Jas Black", Sans-serif
For English characters, first find Helvetica (MAC), and then find Tahoma (Win), can not find the use of Arial (Mac&win), if the above three are missing, then use the current default Sans-serif font (operating system or browser specified);
For Chinese fonts, we already know the rules. Chinese fine Black (MAC), Microsoft Jache (Win) is the default Chinese font for these two platforms.
Backward compatible
A large number of users using Windows XP, Arial is their main Chinese font. In order to take care of these users, you can add a fallback to Microsoft ya Black:
In the Chinese font of the user community, a large part of the Mac people have installed the Win under the common Chinese font (this is due to Office for MAC), but very few win users to install the Chinese font under the Mac.
Therefore, it is almost impossible for a Mac to declare a font in front of a Win user (because they don't!). ), but the black body used to make fallback may replace the location of Microsoft Jas, so the correct arrangement is:
Font-family:helvetica, Tahoma, Arial, Stxihei, "Chinese fine Black", "Microsoft Yahei", "Microsoft Jas Black", SimSun, "Arial", Heiti, "black Body", Sans-serif
Web page CSS style properties: Font fonts Common sense