Home  >  Article  >  Web Front-end  >  What are the css fonts?

What are the css fonts?

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-04-21 14:55:488751browse

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.

What are the css fonts?

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

.selector { 
	font-family: "Microsoft YaHei", 微软雅黑, "MicrosoftJhengHei", 华文细黑, STHeiti, MingLiu
	}

How to set various Chinese fonts in css such as Yahei, Hei, Song, Kai, etc.

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:

Some of Mac OS:

  • 中文字幕黑:STHeiti Light [STXihei]
  • 中文黑体:STHeiti
  • 中文凯体:STKaiti
  • 中文宋体:STSong
  • 中文综合宋体:STFangsong

Some of Windows:

  • Helvetica: SimHei
  • 宋体: SimSun
  • 新宋体: NSimSun
  • imitating Song Dynasty: FangSong
  • 楷体:KaiTi
  • 半松_GB2312:FangSong_GB2312
  • 凯体_GB2312:KaiTi_GB2312
  • Microsoft YaHei:Microsoft YaHei

Some things that will come out of installing Office:

  • Official script: LiSu
  • Youyuan: YouYuan
  • 中文字幕黑:STXihei
  • 中文字幕:STKaiti
  • 中文宋体:STSong
  • 中文中宋体:STZhongsong
  • 中文综合宋体:STFangsong
  • Founder Shuti:FZShuTi
  • Founder Yaoti: FZYaoti
  • 华文彩云: STCaiyun
  • 中文 Amber: STHupo
  • 中文official script: STLiti
  • 华文行楷:STXingkai
  • 华文新伟:STXinwei

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn