IE 8. Gradient background+image

后端 未结 2 549
长情又很酷
长情又很酷 2021-01-28 22:03

How can I make IE8 show a gradient background + image. This is possible in other browsers, but in IE it doesn\'t work.

In other browsers:

/* Opera */ 
b         


        
相关标签:
2条回答
  • 2021-01-28 22:40

    IE8 doesn't support CSS gradients (so that won't work). IE9 has limited support as far as I remember and IE10 will feature full support. I'm not sure what you're trying to do, but in case you'd like a background image with a gradient before or behind, how about stacking two images (one with the gradient, one with the actual background) or merging both into one image?

    0 讨论(0)
  • 2021-01-28 22:43

    I found the answer to my question:

    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#FFFFFF", endColorstr="#EFCA11",GradientType=0 ), progid:DXImageTransform.Microsoft.AlphaImageLoader(src="gxt/images/my/eye.png"); 
    
    0 讨论(0)
提交回复
热议问题