开发者

CSS Filter is stopped by background

OK let's say I have this

.test {
filter:DropShadow(Color=#开发者_开发技巧000000, OffX=1, OffY=1);
}

Yes, it works fine. The text-shadow appears in Internet Explorer. However... if I add a background for color like so:

    .test {
    filter:DropShadow(Color=#000000, OffX=1, OffY=1);
    background:#ffffff;
}

Can you guess what happens? The filter goes way! However, if I ,once again, remove the background property... the filter (text-shadow) comes back!

Help?


Have you tried placing the background attribute before the filter?

.test {
    background:#000000;
    filter:DropShadow(Color=#000000, OffX=1, OffY=1);
}


ROFL, just realized your background and dropshadow colors are the same. Could it just be that you can't tell it's showing up??

If not you might want to try this.

.test {
    background:#000000;
    filter:DropShadow(Color=#000000, OffX=1, OffY=1) !important;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜