IE 9在某些情况下不使用亚像素抗锯齿 [英] IE 9 does not use sub-pixel antialiasing under certain conditions

查看:125
本文介绍了IE 9在某些情况下不使用亚像素抗锯齿的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[原标题: IE 9文本呈现效果很差;有解决方法吗?)

IE 9无法很好地呈现我的应用程序中的文本.问题不在显示器的清除类型"设置中,因为在兼容模式下的IE 9,Firefox和Chrome都能很好地呈现文本.这是在兼容模式下使用IE 9,IE 9和Chrome呈现文本的方式的并行比较:

IE 9 is rendering the text in my application very poorly. The problem is not in my monitor's Clear Type settings, since IE 9 in compatibility mode, Firefox, and Chrome all render text nicely. Here's a side-by-side comparison of how the text is rendered with IE 9, IE 9 in compatibility mode, and Chrome:

我尝试应用此答案,但它似乎不适用于IE 7之后的任何版本.有人知道我们可以应用于我们的网站来修复IE 9的不良文本呈现的任何解决方法吗?

I tried applying this answer, but it doesn't seem to apply to anything after IE 7. Does anybody know of any workarounds we can apply to our site to fix IE 9's bad text rendering?

我已经将问题页面简化为基本要点.如您所见,复制不需要太多时间.如果IE9和IE9标准的文档模式,请确保IE具有浏览器模式:

I've boiled down the problem page to the bare essentials. As you can see, it doesn't take much to reproduce. Be sure that IE has a browser mode if IE9 and document mode of IE9 standards:

<html xmlns="http://www.w3.org/1999/xhtml">
  <body style="background-color: rgb(30, 34, 59); color: rgb(255, 85, 0); font-size: 20px">
    Home
  </body>
</html>

推荐答案

body上设置opacity:.9999似乎在IE9标准模式下呈现文本,与在Quirks模式下的文本更加相似.

It seems setting opacity:.9999 on body renders the text in IE9 standards mode a lot more similar to how it does in Quirks mode.

这篇关于IE 9在某些情况下不使用亚像素抗锯齿的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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