IE8 里中英文字体高度不一样

很多时候会设置字体为“宋体”,就像下图中一开始设置的一样,这样的设置在ie8之前的浏览器都没有问题,在其他浏览器(Firefox,opera…)也都没有问题,但是在IE8里就怪了,出现下面的情况,数字,非中文字符,英文都会比中文高出一点,而且字体越大,差异越明显。我想,这或许是IE8的一个bug。

网上查了有人说可以吧中文的“宋体”写成“simsun”,我试过了,可以的。

font-family:”simsun”,serif;

后来我看了网易得做法:

font-family:\5B8B\4F53,Arial Narrow,arial,serif;

这样挺好,正常了。到底是大网站

head里竟然还用这个“<meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7″ />

学习的同时顺便鄙视一下。

Related posts:

  1. Linux(debian&ubuntu)下./configure错误详解
  2. JavaScript可移动弹出层
此条目发表在 前端技术 分类目录。将固定链接加入收藏夹。

IE8 里中英文字体高度不一样》有 1 条评论

  1. Pingback 引用通告: Font-family 兼容设置 | 草窟主人

发表评论

电子邮件地址不会被公开。 必填项已被标记为 *

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word