问题描述
在Windows上看来,当有在任何背景下的白色文字,它不会转变,文字自然而然地转向了不透明时的绿色有些树荫
价值被切换回1。
On Windows it seems that when there's white text on any background and it does transitions, the text naturally turns to some shade of green during its opacity
value being toggled back to 1.
这是有道理的。但没有人知道任何一种解决办法,以prevent它过渡到的动画之间的绿色阴影,除了从白色改变文本的颜色到别的东西?
This makes sense. But does anyone know any sort of workaround to prevent it transitioning to a shade of green between the animating besides changing the color of the text from white to something else?
我有一个完整的演示。
I have a full demo here.
注:
- 它没有这样做对我来说在Linux中,因为没有ClearType的,它只是发生在我在Windows上启用ClearType的。
- 我指定的
的ClearType:真cleartypeNoBg
,但据我所知,只有解决了IE7的另一个问题 - 我知道,如果你禁用的ClearType它就会消失
- It doesn't do it for me in Linux since there is no ClearType, it only happens when I enable ClearType on Windows.
- I specified
cleartype:true cleartypeNoBg
but as far as I know, that only resolves another issue in IE7. - I know that if you disable ClearType it will go away
我将开放也许某种变通办法的,涉及到不同的动画风格(比其他褪色),但朝我扔你有什么想法。
I would be open to maybe some sort of workaround that involves a different animation style ( other than fading ), but throw any ideas you have at me.
修改:想我已经发现的bug 。好像scrollRight可替代淡入淡出。
EDIT #2: Looking through the transitions here. Seems like scrollRight may substitute for a fade.
推荐答案
指定文本元素的背景颜色,你就再也看不到任何绿色
Specify a background color on the text element and you'll no longer see any green
这篇关于jQuery的周期:褪色的白色文字变为"绿色"在Windows /火狐/启用的ClearType的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!