我有一个加载 div,以加载符号作为背景图像。我希望加载符号完全不透明。但是,为了淡化正在加载的页面,我将背景图像设置为 80% 的不透明度。这在 Chrome 和 Firefox 中运行良好,但在 IE8 中加载符号也是半透明的。有什么方法可以淡化ie8中的背景颜色而不是背景图像?
CSS:
#loadingDiv {
background: url(../../images/Loading32.gif) no-repeat center center;
background-color: rgba(255,255,255, .8);
position: absolute;
height: 330px;
width: 890px;
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#88ffffff, endColorstr=#88ffffff)";
}