【问题标题】:Image becomes white instead of Transparent in IE8在 IE8 中图像变为白色而不是透明
【发布时间】:2015-01-28 10:44:45
【问题描述】:

不透明度在 Ie8 中不起作用。图像变为白色而不是透明... 但它在 chrome 中运行良好....

-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
filter: alpha(opacity=00);
-moz-opacity:0.5;
opacity: 0.0;

我正在使用这个...请在 Ie8 中帮助我

【问题讨论】:

  • 如果您想要完全透明,为什么要放置Opacity=50-moz-opacity:0.5?我怀疑你在别处复制了这段代码?

标签: css image opacity


【解决方案1】:

filter: alpha(opacity=X); 是 IE8 及更早版本的过滤器。如果将其设置为 00 值,则在 IE8 和更早版本中将看不到任何内容,如果您希望将其设置为 0.5 值,请将其更改为 filter: alpha(opacity=50);

【讨论】:

    猜你喜欢
    • 2013-01-13
    • 1970-01-01
    • 1970-01-01
    • 2020-11-29
    • 2020-03-03
    • 1970-01-01
    • 2012-01-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多