IE8 Cufon.replace文本阴影问题
好的,所以我使用 Cufon.replace 在替换的文本上添加 2px 文本阴影,但问题是,在 IE8 中,由于某种原因,文本阴影位于文本本身之上,因此看起来好像原始文本颜色是阴影与替换的阴影是主要文本颜色。
文本是我的导航栏的一部分,它是 ul,我尝试添加 z-index:9999;到我的导航 div 及其父菜单 div,但它没有改变任何内容。还有其他建议吗?
谢谢, 汤姆.
Ok, so I'm using Cufon.replace to add a 2px text shadow onto my replaced text, but the problem is, in IE8 for some reason the text shadow is above the text itself, so it looks as if the original text color is the shadow & the replaced shadow is the main text color.
The text is part of my nav bar which is a ul, I've tried adding a z-index:9999; to my nav div and it's parent menu div, but it hasn't changed anything. Any other suggestions?
Thanks,
Tom.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来很奇怪。在我的脑海中,如果它确实“是”z 索引问题,请不要忘记 z 索引项目需要是位置:相对或位置:绝对才能服从。 (这让我绊倒了好几次。)
另外值得一提的是 IE 不支持文本阴影(甚至在 IE9 中也不支持!),尽管 Cufon 可能会解决这个问题,但也许这也可能是一个问题。
Sounds like an odd thing. Off the top of my head, if it indeed "is" a z-index issues, don't forget that z-indexed items need to either be position: relative or position: absolute for them to obey. (That has tripped me up a few times.)
Also worth throwing out that IE doesn't support text-shadow (not even in IE9!), and although Cufon may get around that, perhaps that might be an issue too.