IE 不透明度和特殊字符
我有一个块元素(div),其中包含几个嵌套元素,所有内容都是文本。我使用 jQuery 在 mouseOver 上进行 fadeIn() 和 fadeOut() 。在除 Internet Explorer 之外的所有浏览器中都可以正常工作(到目前为止,我在 7 和 8 中进行了测试),它会淡化除文本中的两个特殊字符之外的所有文本:←(左箭头)和 →(右箭头)
已经尝试在 CSS 中使用 zoom: 1;
来触发 hasLayout
和 element.filters[0].enabled = false;
事物。
有人吗?
I have a block element (div) that holds a couple of nested elements, all content is text. I use jQuery to fadeIn() and fadeOut() on mouseOver. Works okay in all browsers except for Internet Explorer (I tested in 7 and 8 so far), which fades all the text except for two special characters in the text: ← (left arrow) and → (right arrow)
Already tried zoom: 1;
in the CSS to trigger hasLayout
and the element.filters[0].enabled = false;
thing.
Anyone?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发现错误:将
position:relative
和top:-1px
应用于箭头跨度,将其向上移动一个档次。删除了这些属性,现在可以了。尽管如此,还是太糟糕了,alpha 过滤器会破坏带有position:relative 的内联元素。
Found the bug: had
position:relative
andtop:-1px
applied to the arrows span to shift it up a notch. Removed those attributes, now it works.Still, too bad the alpha filter breaks on inline elements with position:relative.