简体   繁体   English

IE6透明背景颜色不起作用

[英]IE6 transparent background color not working

I have looked every where but I can't get IE6 to display a transparent background.我到处都看过,但我无法让 IE6 显示透明背景。 Ideally I dont want to use a plugin or.htc.理想情况下,我不想使用插件或.htc。

I have read a few articles that suggest this show work, but it doesn't我已经阅读了一些建议该节目有效的文章,但事实并非如此

#example1 {
        background-color: #000;
        position: absolute;
        top: 0;
        left: 0;
        width: 1000px;
        height: 1000px;
        zoom: 1;
        filter: alpha(opacity=30);
        opacity: 0.3;
        -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";   
    }

That filter is trying to make the entire image 70% transparent, not just the background.该滤镜试图使整个图像 70% 透明,而不仅仅是背景。

The best thing to do really, is fallback on a behaviour to fix it -- try IE PNG Fix .真正要做的最好的事情是回退到修复它的行为 - 尝试IE PNG Fix You can load the CSS that applies the fix with conditional comments so that it only is applied to IE6.您可以加载 CSS 应用带有条件注释的修复,以便它仅应用于 IE6。

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

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