首先以下用法在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上不需要判断浏览器,只需要都写上,会自动使用可行的选项: