简体   繁体   English

IE8背景色RGBA

[英]IE8 background-color rgba

I try to use this code in css to fix opacity background-color in IE8, but it doesn't work. 我尝试在CSS中使用此代码来修复IE8中的不透明背景色,但是它不起作用。

How can i fix it? 我该如何解决?

-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";

This should work: 这应该工作:

filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);

The -ms- prefix seems unnecessary, and the double quotes look wrong. -ms-前缀似乎是不必要的,并且双引号看起来是错误的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM