如何使IE8中的汉字显示而不强制兼容模式? [英] How can I make Chinese characters show in IE8 without forcing compatibility mode?

查看:96
本文介绍了如何使IE8中的汉字显示而不强制兼容模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题的所有解决方案都表示使用< meta http-equiv =X-UA-Compatiblecontent =IE = EmulateIE7/> ,因为它强制浏览器在兼容性视图中呈现它是IE7),但然后当用户实际使用IE7(或许多其他浏览器)时,字符不显示。

All the solutions for this issue say to use <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />, which works because it forces the browser to render in compatibility view (i.e. as if it were IE7), but then the characters don't display when the user is actually using IE7 (or a number of other browsers). Instead, I see squares.

任何人都遇到过这种情况吗?

Anyone else encounter this? How did you deal with it?

推荐答案

在CSS中设置以下font-family适合我:

Setting the following font-family in CSS worked for me:

font-family: Arial Unicode MS, Arial, Helvetica, sans-serif;

因为在这种情况下,Arial Unicode MS是唯一可用的简体字体。

Because in this case, Arial Unicode MS is the only available font for Chinese Simplified.

更新:感谢Spike,前两种字体的顺序是错误的。已更正。

Update: Thanks to Spike, the order of the first two fonts was wrong. Corrected.

这篇关于如何使IE8中的汉字显示而不强制兼容模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆