Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set Chinese fonts for compatible browsers by css

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report