Home > Article > Web Front-end > What are the css fonts?
css fonts include: Chinese fine black, Chinese bold, Chinese regular script, Chinese Song, Chinese imitation Song, bold, Song, new Song, imitation Song, regular script, Microsoft Yahei, official script, Youyuan, Chinese fine black, Chinese Song Dynasty, Founder Shu style, Founder Yao style, Chinese Caiyun, Chinese Amber, etc.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
.selector { font-family: "Microsoft YaHei", 微软雅黑, "MicrosoftJhengHei", 华文细黑, STHeiti, MingLiu }
Explanation:
The Chinese name "Microsoft Yahei" is added for compatibility with opera.
MicrosoftJhengHei is Microsoft's regular boldface, STHeiti is Chinese boldface, and MingLiu remembers that Chinese under 11px has extraordinary effects.
It is recommended to use the English representation of Chinese fonts in css. The English names of common Chinese fonts are attached below:
Note: If the name of the font is one word, there is no need to add quotation marks, otherwise it will be invalid in ie6 and 7, and the subsequent styles will not take effect!
Recommended learning: css video tutorial
The above is the detailed content of What are the css fonts?. For more information, please follow other related articles on the PHP Chinese website!