1

please how to hide standard background image from IE when filter: progid:DXImageTransform.Microsoft.AlphaImageLoader() is applied? I am using it for bacground-size support in IE..CSS looks like this

    background: url('../img/visit_ok.png') no-repeat center center;
    .background-size(contain);   //LESS mixin   
    filter:  progid:DXImageTransform.Microsoft.AlphaImageLoader(
            src='img/visit_ok.png',
            enabled=true,
            sizingMethod='scale');
    -ms-filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
            src='img/visit_ok.png',
            enabled=true,
            sizingMethod='scale');

The problem is in IE both images are displayed..On top is correctly scaled background form the filter, but underneath is the standard non-scaled png..

4

1 回答 1

1

您也许可以在仅 IE 的样式表中隐藏常规背景。将此代码放在页面的 HEAD 中,并包含一个 IE 样式表链接或将 CSS 直接放在页面上。

<!--[if IE]>
    Special instructions for IE here
<![endif]-->
于 2012-08-16T11:42:46.220 回答