Get the App
SLTechnology News&Howtos  ›  Development  › 

How to set Chinese fonts for compatible browsers by css

Shulou Source: shulou.com Published: 2022-06-01 06:53:23 10月03日 Update

This article mainly introduces how to set css compatible browser Chinese font, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

High-version IE hunters (such as IE9) and some exercise systems are not compatible with CSS to set fonts for direct application of Chinese characters. For example, direct css settings set fonts for Chinese characters such as "Song style", "boldface", "Microsoft Yahue" and other Chinese calligraphy. Line-height compatibility will be effective.

Css line-height works well.

It is planned that the font-family setting equipment will be equipped with Chinese fonts instead of Chinese calligraphy to convert Chinese calligraphy to Unicode coding or Chinese to English.

The following are the corresponding calligraphy fonts in common css settings:

Font-English-Unicode

Boldface-SimHei -\ 9ED1\ 4F53

Arial-- SimSun--\ 5B8B\ 4F53

Microsoft Yahei-Microsoft YaHei -\ 5FAE\ 8F6F\ 96C5\ 9ED1

Italics-KaiTi -\ 6977\ 4F53

New Song style-- NSimSun--\ 65B0\ 5B8B\ 4F53

Small sample CSS code:

1. Div {font-family: "bold"}

2. Div {font-family: "SimHei"}

3. Div {font-family: "\ 9ED1\ 4F53"}

The above use font-family to set the font to boldface, 1, 2, 3 are to set boldface only to apply differences in values, generally recommend the second and third values to set the pen and ink in equipment.

If you need to reprint, please indicate the source and source of the article: http://www..com/jiqiao/j53148.shtml

Thank you for reading this article carefully. I hope the article "how to set css Chinese fonts for compatible browsers" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and follow the industry information channel. More related knowledge is waiting for you to learn!

Tags: Font boldface Chinese decoration article calligraphy Chinese font Song style browser browsing text Microsoft English application code value system interest provenance just Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Huawei macOS MySQL Microsoft