V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
zhaoyafei
V2EX  ›  HTML

怎样让 IE6 完美正确显示 .png 格式图片 ?

  •  
  •   zhaoyafei · Apr 24, 2011 · 6862 views
    This topic created in 5486 days ago, the information mentioned may be changed or developed.
    很郁闷,总是在 IE6 下显示不正常,有个黑色的背景之类的,影响效果。我看到 dnspod 首页 logo 也是 .png 格式的,它怎么就显示正常了呢?
    13 replies    1970-01-01 08:00:00 +08:00
    Danny
        1
    Danny  
       Apr 24, 2011
    那就不搞透明
    apoclast
        2
    apoclast  
       Apr 24, 2011
    在你想用的png图片上加一道dx滤镜就可以了,具体请google
    zythum
        3
    zythum  
       Apr 24, 2011
    ie6 png

    _background:transparent;
    _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='我是png.png');
    whitegerry
        4
    whitegerry  
       Apr 26, 2011
    DD_belatedPNG吧,非常不错
    cmonday
        5
    cmonday  
       Apr 26, 2011
    DD_belatedPNG +1
    sytao
        6
    sytao  
       Apr 26, 2011 via iPhone
    存成png8格式的就行。
    ssword
        7
    ssword  
       Apr 26, 2011
    DD_belatedPNG有点违和的问题,使用后页面的布局会有些变化。
    whitegerry
        8
    whitegerry  
       Apr 28, 2011
    @ssword 前几天有个挺挠头的页面,本来是要做成flash的,后来用xhtml+css来做的,ie6下面这个其实挺好用的,唯一违和的就是hover的时候如果要换个png的话必须得a:hover。。。
    26z
        9
    26z  
       Apr 28, 2011
    jquery+pngfix
    cmonday
        10
    cmonday  
       Apr 28, 2011
    @ssword 是什么?我没有遇到过,一直觉得这个是最好的了
    这个对CSS Spirits支持得最好
    ssword
        11
    ssword  
       Apr 28, 2011
    @cmonday @whitegerry 看来是我的问题,记得使用前后有稍稍微调了一下布局。
    romoo
        12
    romoo  
       Apr 28, 2011
    DD_belatedPNG 会有 BUG。

    之前遇到过 a:hover{background:url(xx.png) 10px 10px no-repeat;}

    在 IE6 下背景图定位不准,相差一两个像素。
    whitegerry
        13
    whitegerry  
       Apr 28, 2011
    @romoo 这个倒没遇到过
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   845 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 337ms · UTC 19:42 · PVG 03:42 · LAX 12:42 · JFK 15:42
    ♥ Do have faith in what you're doing.