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 parse the expression of Chinese fonts in CSS

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article will explain in detail how to parse the expression of Chinese fonts in CSS. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

When writing the stylesheet of a website, it is inevitable to use some Chinese fonts, such as Microsoft Yahei, boldface, etc., unless it is an English station, or you are willing to use the default font of the browser for the whole site. The method of writing Chinese fonts in CSS generally uses font-family: "Microsoft Yahei", "boldface"; this is a similar expression, but for a UTF8 coding platform like WordPress, a careless lack of transcoding will cause Chinese fonts to fail to form according to the desired font table.

So we can express Chinese in English and unicode, for example, the font-family just now: "Microsoft Yahei", "boldface"; it can be written as font-family: "Microsoft Yahei", "SimHei"; does it look like it can be unified?

There are too many Chinese fonts corresponding to English and unicode, and I can't memorize them, so I collected a table to collect and record it. I hope it's also what you want:

It's very comprehensive, but don't be happy too early, because we have a regular army of browsers, and even Firefox, which holds the banner of supporting CSS, still has something unsatisfactory, because Firefox does not support the above aliases. For it, "Microsoft Yahei" is not Microsoft yahei, but can only feedback the result of the default font of the browser. Alas, it is not good to have too many browsers. It would be better to go back to the era of IE monopoly. If there is no comparison, there is no complaint.

On how to parse the expression of Chinese fonts in CSS to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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