CSS Box-Shadow Not Working in IE

后端 未结 12 2233
太阳男子
太阳男子 2021-01-01 23:10

How would I get this to work in IE?

.fancy {
     border: 1px solid black;
     margin: 10px;
     box-shadow: 5px 5px 5px #cccccc;
     -webkit-box-shadow:          


        
12条回答
  •  攒了一身酷
    2021-01-01 23:56

    For me, the problem was that IE doesn't seem to like hex colors with 8 digits (the last two were for the alpha channel). I solved the problem by switching from hex colors to rgba() colors.

    I discovered this by accident and I'm surprised I haven't seen it documented anywhere yet!

提交回复
热议问题