CSS Box-Shadow Not Working in IE

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

    The probably most elegant and functionable way to set IE-specific styling today are media-queries. Despite they're not the most beautiful, it work's reliable without making use of filters or even JS.

    @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* IE10+ CSS styles go here */
    }
    

    For more Details see: https://philipnewcomer.net/2014/04/target-internet-explorer-10-11-css/

提交回复
热议问题