1. Change the Chinese font name to the English name:
Common Chinese fonts for Windows:
======================================
Simhei
Simsun
New: nsimsun
Imitation Song: fangsong simfang?
Kaiti simkai?
Imitation Song _ gb2312: fangsong_gb2312
_ Gb2312: kaiti_gb2312
Microsoft yahei
Shu shu: Lisu simli?
Youyuan simyou?
文: stxihei
文: stkaiti
文: stsong
文中: stzhongsong
文: stfangsong
Founder Shu-I: fzshuti
Founder Yao Ti: fzyaoti
文 cloud: stcaiyun
文 AMBER: sthupo
文: stliti
文: stxingkai
New Chinese Wei: stxinwei
However, these English names cannot be identified in non-ie browsers and can be defined in the page body:
Font-family: simsun, "";
In this way, at least the font style I want can be accurately displayed in several browsers.
2. When a CSS file is included, add the charset attribute. Pay attention to the encoding of the CSS file, for example:
<Style href?”style.css "type =" text/CSS "rel =" stylesheet "charset =" UTF-8 ">
3. Save the CSS file as UTF-8 encoding and add the following statement at the beginning of the CSS file:
@ Charset "UTF-8 ″;
Interconnected Power e-commerce