CSS Box-Shadow Not Working in IE

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

    By default IE was setting up IE10 Compatibility mode which should be replaced with IE 9 using meta-tag. So, whenever it will be running on other browsers then it will use the CSS that will be compatible with IE9. As in IE10 Compatibility mode box-shadow CSS property has been removed from the library

    We can use meta-tag in head just to change the document compatibility level:

    
    

    Above tag is showing that make this document compatible with IE8 and IE9 for browsers other than IE8 and IE9 switch CSS level to IE9.

提交回复
热议问题