zhaoyafei
V2EX  ›  HTML

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

  •  
  •   zhaoyafei · Apr 24, 2011 · 7360 views
    This topic created in 5687 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
    Danny
    Apr 24, 2011
    1
    那就不搞透明
    apoclast
    apoclast
    Apr 24, 2011
    2
    在你想用的png图片上加一道dx滤镜就可以了,具体请google
    zythum
    zythum
    Apr 24, 2011
    3
    ie6 png

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

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

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