IE compatible 6,7,8 version box shadow writing

<html>
    <head>
        <meta charset="UTF-8" />        
        <style type="text/css">
            .wrap {                 position: relative;                             }             /* Cover the shadow part*/             .shadow {                 width: 200px;                 height : 100px;                 background: #fff;                                 }             /* Shadow background part*/             .ieShadow {                 display: none;                 display: block\9;                 position: absolute;                 width: 200px;                 height: 100px;















                z-index: -1;
                background: #ccc;
                top: -5px;
                left: -5px;
                filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius='6', MakeShadow='true', ShadowOpacity='0.2');
            }
        </style>
    </head>
    <body>
        <div class="wrap">
            <div class='ieShadow'></div>
            <div class='shadow'></div>
        </div>
    </body>
</html>

The css3 transform abbreviations are in order!

Guess you like

Origin blog.csdn.net/weixin_41421227/article/details/103013351