具有不透明度的CSS灰度

时间:2014-05-30 16:13:28

标签: css internet-explorer cross-browser

是否可以使用具有设置透明度的灰度滤镜?

这在非IE浏览器中运行良好,但灰度过滤器似乎在IE8 +中将不透明度恢复到100%

.disabled{
   opacity: .2; /* standard: ff gt 1.5, opera, safari */
   -ms-filter: “alpha(opacity=20)”; /* ie 8 */
   filter: alpha(opacity=20); /* ie lt 7 */
   -khtml-opacity: .2; /* safari 1.x */
   -moz-opacity: .2; /* ff lt 1.5, netscape */


   -webkit-filter: grayscale(100%);
   -moz-filter: grayscale(100%);
   filter: grayscale(100%);
}

0 个答案:

没有答案
相关问题