【问题标题】:Equivalent to text-shadow in IE相当于IE中的text-shadow
【发布时间】:2012-01-02 00:22:23
【问题描述】:

我的 CSS 中有这个:

body.transparent {
    background-color: transparent;
    color: #ffffff;
    text-shadow: 0 -1px #000, 1px 0 # 000, 0 1px #000, -1px 0 # 000;
}
body.transparent a {
    text-shadow: none;
}

但它在 IE 上不起作用。它如何解决这个问题? IE有什么等价物吗?

【问题讨论】:

    标签: css shadow


    【解决方案1】:

    Google Mojo:An Option to Mimic CSS3 Text Shadow in Internet Explorer

    filter: glow(color=black,strength=5); 
    

    该网站还列出了一些使用 JavaScript 的其他解决方法。

    【讨论】:

    • 我用 filter:glow 试过了,但它给我带来了其他问题(比如我无法为 body.transparent a {} 覆盖它)
    • 你试过enabledproperty吗?
    • 完美的即。将这个添加到我为 chrome 拥有的那个中,我得到了一个跨浏览器解决方案!谢谢
    猜你喜欢
    • 1970-01-01
    • 2013-03-07
    • 2017-05-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多