开发者

CSS gradients not displaying on old versions of IE and Firefox

开发者 https://www.devze.com 2023-02-11 01:45 出处:网络
.horizontalTabGradient { filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#edeff4\', endColorstr=\'#ffffff\'开发者_如何学Go, iOrientation=1); /* for IE */
.horizontalTabGradient
{
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#edeff4', endColorstr='#ffffff'开发者_如何学Go, iOrientation=1); /* for IE */
    background: -webkit-gradient(linear, left top, left bottom, from(#edeff4), to(#ffffff)); /* for webkit browsers */
    background: -moz-linear-gradient(top,  #edeff4,  #ffffff); /* for firefox 3.6+ */   
}

We set the backgrounds this this CSS specifies to a lot of our buttons and grid headers throughout our app. We recently found through testing that when viewing the app on older versions of Firefox and IE, the background does not appear.

Is this just flat out not supported by the older versions? Or is there a way we can get it to work in both.

Thanks!


Is this just flat out not supported by the older versions?

Yes.

Or is there a way we can get it to work in both.

Yes, but not with CSS alone, you need to use images.

0

精彩评论

暂无评论...
验证码 换一张
取 消