0
点赞
收藏
分享

微信扫一扫

[css]如何在IE11上使用渐变色


首先以下用法在ie11上是不行的

filter: progid:DXImageTransform.Microsoft.gradient(startcolorstr=red,endcolorstr=blue,gradientType=1);

参考: ​​https://stackoverflow.com/questions/19980079/how-to-make-background-image-with-linear-gradient-work-on-ie-11​​

使用即可

linear-gradient(to bottom, #ffffff, #BEE38F);

在css上不需要判断浏览器,只需要都写上,会自动使用可行的选项:

[css]如何在IE11上使用渐变色_渐变色

举报

相关推荐

0 条评论