Do the project encounter a strange problem, the same code, in FF and IE7 above the page display normal, but IE6 no matter how to change all do not work, originally thought is IE6 some floating bug caused, the result got a long time also not, later inadvertently put the original set font-family: "Blackbody" Attributes are removed, everything is back to normal ...
To search the Internet, there are really a lot of people encounter the same problem, the following excerpt:
CSS file font-family: "Bold", which will cause the subsequent CSS definition all do not work.
Just put font-family: "Blackbody";
Change into
Font-family: blackbody;
Just do it, remove the space and double quotation marks.
This problem only exists in the IE6.
Some of the answers found on other websites:
The font-family attribute of a container is written in the "Song Body", andIE6 Don't Parse "" Number, resulting in the center failure of the entire page
CSS in the specified font-family attribute is bold, young circle, Microsoft ya Black, and so on, one can not display (IE7), and finally found that the original CSS file is gb2312 encoding, save as UTF-8 after the change garbled Chinese, after the font-family designated Chinese font will be OK ~ In this way, the browser MS is based on UTF8 to parse the CSS file
====================================
In addition, considering the problem of file encoding, it is recommended to use English notation of Chinese font in CSS, the following is the English name of common Chinese fonts:
Some of the Mac OS:
Chinese fine Black: Stheiti light [Stxihei]
Chinese blackbody: Stheiti
Chinese Italic: Stkaiti
XXFarEastFont-Arial: Stsong
XXFarEastFont-Imitation: Stfangsong
Shihda Black Pro:lihei Pro Medium
Shihda Song Pro:lisong Pro Light
Target: Biaukai
Apple Shihda Black: ligothic Medium
Apple Shihda song: Apples Lisung Light
Some of Windows:
New detail: PMingLiU
Detail: MingLiU
Target: DFKAI-SB
blackbody: Simhei
Song body: SimSun
New song body: Nsimsun
Imitation: Fangsong
italics: Kaiti
Imitation _gb2312:fangsong_gb2312
Italic _gb2312:kaiti_gb2312
Micro-Black: Microsoft Jhenghei
Microsoft Elegance Blackbody: Microsoft Yahei
Some of the things that can be produced by office:
Official script: Lisu
Young Circle: Youyuan
Chinese fine Black: Stxihei
Chinese Italic: Stkaiti
XXFarEastFont-Arial: Stsong
XXFarEastFont-Sung: Stzhongsong
XXFarEastFont-Imitation: Stfangsong
Founder Shu Body: Fzshuti
Founder Arial: Fzyaoti
Chinese Choi Wan: Stcaiyun
Chinese Amber: Sthupo
Chinese script: Stliti
XXFarEastFont-Xingkai: Stxingkai
Chinese New Wei: Stxinwei
//===============================
How to set font-family as Microsoft Black
Font settings need to be set in the body of the CSS. In addition, your computer must be installed with Microsoft JAS font to be effective.
body,html{
font-family
:
‘Microsoft YaHei‘
,
‘Hiragino Sans GB‘
,
Helvetica
,
Arial
,
‘Lucida Grande‘
,
sans-serif
;}
CSS setting Chinese font (font-family: "Blackbody") after style invalidation problem