Diagonal Gradient in IE

后端 未结 3 1333
天涯浪人
天涯浪人 2020-12-14 04:12

Is there a way to have a diagonal gradient in IE? In Chrome I could do something like this:

body{
    background-image:-webkit-gradient(
    linear,
    left         


        
3条回答
  •  半阙折子戏
    2020-12-14 04:34

    The short answer is, unfortunately, no, you can't. Microsoft's gradient filter is binary - only left to right or top to bottom.

    You might, however, be able to use CSS3 PIE to do what you want. Keep in mind that PIE's support for gradients in IE9 is somewhat sketchy, though, and may or may not work, even if IE7 and 8 do (see their forums for some more info).

提交回复
热议问题