阴影不适用于IE 7和IE 8

时间:2013-04-19 16:27:57

标签: html css

为什么这个css不工作ie 7和ie 8

.shadow
{
    -moz-box-shadow: 3px 3px 4px rgba(0,0,0,0.4);
    -webkit-box-shadow: 3px 3px 4px rgba(0,0,0,0.4);
    -o-box-shadow: 3px 3px 4px rgba(0,0,0,0.4);
    -o-transition: box-shadow 0.4s;
    box-shadow: 3px 3px 4px rgba(0,0,0,0.4); /* For IE 8+ */
    zoom: 1;
    filter: progid:DXImageTransform.Microsoft.Shadow(color='#000000', Direction=145, Strength=3); /* For IE 5.5 - 7 */
}

1 个答案:

答案 0 :(得分:1)

使用this可以应用shadow.Check it once