5

Вопрос по css – Как сохранить альфа-прозрачность PNG при использовании свойства «-ms-filter»

Error: User Rate Limit Exceeded

<a><img src="myfile.png" /> Some text</a>

Error: User Rate Limit Exceeded

a:hover
{
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=75);
    opacity: .75;
}

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded-ms-filterError: User Rate Limit ExceededfilterError: User Rate Limit Exceeded

Error: User Rate Limit Exceeded-ms-filter: "";)

Error: User Rate Limit Exceeded

  • Error: User Rate Limit Exceeded

    от cbp
  • Error: User Rate Limit Exceeded

    от
  • Error: User Rate Limit Exceeded

    от cbp
  • Error: User Rate Limit Exceeded

    от
  • Error: User Rate Limit Exceeded

    от cbp
  • Error: User Rate Limit Exceeded

    от
  • Error: User Rate Limit Exceeded

    от OrangeDog
  • Error: User Rate Limit Exceeded

    от Sasha Chedygov
  • 10

    Error: User Rate Limit Exceeded

    $(function() {
        if (jQuery.browser.msie)
            $('img[src$=".png"]').each(function() { // must have quotes around .png
                this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.src+",sizingMethod='scale')";
            });
    });
    

  • 4

    Error: User Rate Limit Exceeded

    filter:none; ?

    <!--[if lt IE 7]>
    <style>a:hover{filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=75);}</style>
    <![endif]-->
    

    <!--[if lt IE 7]>
    <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js" type="text/javascript"></script>
    <![endif]-->
    

  • 2

    Error: User Rate Limit Exceeded

    var i;
    for (i in document.images) {
        if (document.images[i].src) {
            var imgSrc = document.images[i].src;
            if (imgSrc.toLowerCase().substr(imgSrc.length-4) === '.png') {
                document.images[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='crop',src='" + imgSrc + "')";
            }
        }
    }
    

    <!--[if IE]><![endif]-->