IE 不透明度和特殊字符

发布于 2024-10-04 15:58:51 字数 318 浏览 7 评论 0原文

我有一个块元素(div),其中包含几个嵌套元素,所有内容都是文本。我使用 jQuery 在 mouseOver 上进行 fadeIn() 和 fadeOut() 。在除 Internet Explorer 之外的所有浏览器中都可以正常工作(到目前为止,我在 7 和 8 中进行了测试),它会淡化除文本中的两个特殊字符之外的所有文本:←(左箭头)和 →(右箭头)
已经尝试在 CSS 中使用 zoom: 1; 来触发 hasLayoutelement.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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清音悠歌 2024-10-11 15:58:52

发现错误:将 position:relativetop:-1px 应用于箭头跨度,将其向上移动一个档次。删除了这些属性,现在可以了。
尽管如此,还是太糟糕了,alpha 过滤器会破坏带有position:relative 的内联元素。

Found the bug: had position:relative and top:-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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文