CSS Box-Shadow Not Working in IE

后端 未结 12 2064
太阳男子
太阳男子 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:41

    On your site, this CSS rule is preventing box-shadow from working in IE9:

    table, table td {
        border-collapse: collapse;
    }
    

    See: box-shadow on IE9 doesn't render using correct CSS, works on Firefox, Chrome

    You must add border-collapse: separate; to the element that box-shadow is not working on.

    So, this should fix the problem for you:

    .fancy {
        border-collapse: separate;
    }
    

提交回复
热议问题