我试图让我的 IE div 具有与其他浏览器相同的行为。我有这个CSS:
#featured .Reasons{
height:auto;
margin-top:40px;
padding:35px;
display:block;
background-image: linear-gradient(left bottom, rgb(255,255,255) 15%, rgb(245,243,233) 48%, rgb(255,255,255) 79%);
background-image: -o-linear-gradient(left bottom, rgb(255,255,255) 15%, rgb(245,243,233) 48%, rgb(255,255,255) 79%);
background-image: -moz-linear-gradient(left bottom, rgb(255,255,255) 15%, rgb(245,243,233) 48%, rgb(255,255,255) 79%);
background-image: -webkit-linear-gradient(left bottom, rgb(255,255,255) 15%, rgb(245,243,233) 48%, rgb(255,255,255) 79%);
background-image: -ms-linear-gradient(left bottom, rgb(255,255,255) 15%, rgb(245,243,233) 48%, rgb(255,255,255) 79%);
background-image: -webkit-gradient(
linear,
left bottom,
right top,
color-stop(0.15, rgb(255,255,255)),
color-stop(0.48, rgb(245,243,233)),
color-stop(0.79, rgb(255,255,255))
);
-webkit-box-shadow: 0px 1px 5px 0px #4a4a4a;
-moz-box-shadow: 0px 1px 5px 0px #4a4a4a;
box-shadow: 0px 1px 5px 0px #4a4a4a;
-webkit-border-radius: 16px;
-moz-border-radius: 16px;
border-radius: 16px;
}
它适用于除 IE 以外的所有浏览器。我知道 IE 在设计方面有点特别(嗯,让我们说烦人),但我该如何解决呢?你可以在这里看到它:stringtheori.es 谢谢 :)