In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
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 the relevant knowledge of "how to set Chinese fonts in css layout". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "how to set Chinese fonts in css layout" can help you solve the problem.
1. You can't set up CSS equipment at will. I install pen and ink in my installation.
Suppose that the HTML page open the distribution board to set its own font, and as usual the hunter computer does not install this kind of ink will appear, your computer browsing in the pen and ink to show your local installation of fonts, and the viewer did not install you to configure the CSS will be filled with Chinese characters to clearly express the acquiescence of "Song", "boldface", etc. (the hunting device reflects the default in calligraphy).
2. @ font-face configure other medium pen ink
If you want to set up the Chinese font you installed, it is necessary to put its Chinese font in your web and use @ font-face introduction, but some of these fonts are usually eot cut fonts, not fonts you have installed, so you need to download the corresponding eot file library if you want to install it on your computer, and font-face style introduction, deficiency, this kind of font library files are relatively large. The poor bandwidth download of the hunter will slowly affect the effectiveness of opening the font on the web page.
3. CSS Chinese fonts for common configurable equipment
Boldface, Song style and Microsoft Yahi are common Chinese calligraphy. As usual, both PC and phone have this font (set equipment, equipment, calligraphy font style attribute word: font-family).
P {font-family: "boldface"}
Set calligraphy in p to boldface
P {font-family: "Song style"}
Set the inner mode of P to Song style
P {font-family: "Microsoft Yahi"}
Set the font in the equipment p to Microsoft yahei
4. Configure the necessary transcoding of pen and ink to Chinese in CSS
The third point is to set up equipment and equipment to see through several kinds of Chinese calligraphy, but some hunting devices that directly use Chinese characters are not compatible, which will lead to the effectiveness of line-height. The solution path is equal to the conversion of Chinese calligraphy in CSS configuration.
Either use English or use Unicode coding.
This is the end of the introduction on "how to set Chinese fonts in css layout". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.