类似于上面的答案(见下面的注释):
#boxContainer{
filter:
progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=0, Color='#000000'),
progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=90, Color='#000000'),
progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=180, Color='#000000'),
progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=270, Color='#000000');
}
重要提示:
请记住,IE 中还有一个错误,它会将相同的样式应用于子元素。因此,如果您愿意,您可能需要应用“计数器”/“Nullifier”。
例子:
#boxContainer button, #boxContainer div, #boxContainer span {
/* Nullify Inherited Effect - Set "Strength=0" */
filter:
progid:DXImageTransform.Microsoft.Shadow(Strength=0, Direction=0, Color='#000000'),
progid:DXImageTransform.Microsoft.Shadow(Strength=0, Direction=90, Color='#000000'),
progid:DXImageTransform.Microsoft.Shadow(Strength=0, Direction=180, Color='#000000'),
progid:DXImageTransform.Microsoft.Shadow(Strength=0, Direction=270, Color='#000000');
}