CSS gradients in IE7 & IE8 is causing text to become aliased

后端 未结 7 927
灰色年华
灰色年华 2021-02-05 07:58

I\'m attempting to use a CSS gradient in a div containing some text. With Gecko and Webkit, the text displays fine. In IE7 & IE8 the text appears aliased (jaggy).

7条回答
  •  温柔的废话
    2021-02-05 08:12

    I found another inexpensive (bit opaque) solution. The text becomes anti-alised back again, when wrapping the text node and setting each element to relative position. Do not ask why...

    Lets assume:

    
    
      IE8 filter problem causing jagged fonts
      
    
    
      
    I am wrapped, therefore not jagged

    Hope that helps anyone out there. In this case it's not necessary to use background images or derivates.

    Working example in jsfiddle: http://jsfiddle.net/SLZpE/2/

提交回复
热议问题