In CSS files, we often see that some font names are garbled, because the authors directly write the names of Chinese fonts into Chinese, in addition, when I upload or copy a copy, it turns into Garbled text. To avoid this problem, we recommend that you use the English name of a Chinese font when using a Chinese font in a CSS file. The following table lists the names of commonly used Chinese fonts: fonts that come with Windows:
Chinese name English name Unicode 2
Mac OS
文 ststheiti light [stxihei] \ 534e \ 6587 \ 7ec6 \ 9ed1 文
文 stheiti \ 534e \ 6587 \ 9ed1 \ 4f53 文
Stkaiti \ 534e \ 6587 \ 6977 \ 4f53
文 stsong \ 534e \ 6587 \ 5b8b \ 4f53 文
Stfangsong \ 534e \ 6587 \ 4eff \ 5b8b 文
Li pro lihei pro medium \ 4e3d \ 9ed1 pro li pro
Lisong pro light \ 4e3d \ 5b8b pro lisong pro
Biaukai \ 6807 \ 6977 \ 4f53
Apple li中 Apple ligothic medium \ 82f9 \ 679c \ 4e3d \ 4e2d \ 9ed1 Apple li中
Apple lixisong Apple lisung light \ 82f9 \ 679c \ 4e3d \ 7ec6 \ 5b8b Apple lixisong
Windows
New fine body pmingliu \ 65b0 \ 7ec6 \ 660e \ 4f53 new fine body
Fine body mingliu \ 7ec6 \ 660e \ 4f53 fine body
Standard body dfkai-Sb \ 6807 \ 6977 \ 4f53 standard body
Simhei \ 9ed1 \ 4f53
Simsun \ 5b8b \ 4f53
New nnsimsun \ 65b0 \ 5b8b \ 4f53 new
Imitation Song fangsong \ 4eff \ 5b8b Imitation Song
Kaiti \ 6977 \ 4f53 kaiti
Imitation Song _ gb2312 fangsong_gb2312 \ 4eff \ 5b8b_gb2312 Imitation Song _ gb2312
_ Gb2312 kaiti_gb2312 \ 6977 \ 4f53_gb2312 _ gb2312
Microsoft jhenghei \ 5fae \ x8f6f \ 6b63 \ 9ed1 \ 4f53
Microsoft yahei \ 5fae \ 8f6f \ 96c5 \ 9ed1
Office
Lishu \ 96b6 \ 4e66 Lishu
Youyuan \ 5e7c \ 5706 youyuan
文 ststxihei \ 534e \ 6587 \ 7ec6 \ 9ed1 文
Stkaiti \ 534e \ 6587 \ 6977 \ 4f53
文 stsong \ 534e \ 6587 \ 5b8b \ 4f53 文
文中 song stzhongsong \ 534e \ 6587 \ 4e2d \ 5b8b 文中
Stfangsong \ 534e \ 6587 \ 4eff \ 5b8b 文
Founder shu fzshuti \ 65b9 \ 6b63 \ 8212 \ 4f53 founder shu
Founder Yao Ti fzyaoti \ 65b9 \ 6b63 \ 59da \ 4f53 founder Yao Ti
文 cloud stcaiyun \ 534e \ 6587 \ 5f69 \ 4e91 文 cloud
Chinese Amber sthupo \ 534e \ 6587 \ 7425 \ 73c0 Chinese amber
Stliti \ 534e \ 6587 \ 96b6 \ 4e66 文
Stxingkai \ 534e \ 6587 \ 884c \ 6977
New Chinese Wei stxinwei \ 534e \ 6587 \ 65b0 \ 9b4f New Chinese Wei
New fine body: pmingliu
Fine body: mingliu
Standard body: dfkai-sb
Simhei
Simsun
New: nsimsun
Imitation Song: fangsong
Kaiti
Imitation Song _ gb2312: fangsong_gb2312
_ Gb2312: kaiti_gb2312
Microsoft: Microsoft jhenghei
Microsoft yahei
Some additional fonts for Office installation:
Statement: Lisu
Youyuan
文: stxihei
文: stkaiti
文: stsong
文中: stzhongsong
文: stfangsong
Founder Shu-I: fzshuti
Founder Yao Ti: fzyaoti
文 cloud: stcaiyun
文 AMBER: sthupo
文: stliti
文: stxingkai
New Chinese Wei: stxinwei
Font in Apple Computer:
文: stheiti light [stxihei]
文: stheiti
文: stkaiti
文: stsong
文: stfangsong
Li Pro: lihei pro Medium
Lisong Pro: lisong pro light
Biaukai
Apple li中: Apple ligothic Medium
Apple lixisong: Apple lisung light
If you want to apply in CSS, write: font-family: Microsoft yahei;
Detailed source reference: http://www.jb51.net/css/67658.html