How to apply -webkit-gradient to IE?

前端 未结 4 899
北荒
北荒 2021-01-03 10:09

I have the following css code:

-webkit-gradient(linear, left bottom, left top, from(#5AE), to(#036));

Which displays the background very ni

4条回答
  •  鱼传尺愫
    2021-01-03 10:34

    For IE8 you can add this

    background: #aaa;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#111111', endColorstr='#aaaaaa',GradientType=1);
    

    For IE9 the following will work

    background-image: -ms-linear-gradient(left, #111, #aaa);
    

提交回复
热议问题