V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Dive into HTML5
http://diveintohtml5.org/
zhaoyafei
V2EX  ›  HTML

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

  •  
  •   zhaoyafei · 2011-04-24 12:59:35 +08:00 · 6031 次点击
    这是一个创建于 4744 天前的主题,其中的信息可能已经有所发展或是发生改变。
    很郁闷,总是在 IE6 下显示不正常,有个黑色的背景之类的,影响效果。我看到 dnspod 首页 logo 也是 .png 格式的,它怎么就显示正常了呢?
    13 条回复    1970-01-01 08:00:00 +08:00
    Danny
        1
    Danny  
       2011-04-24 13:03:00 +08:00
    那就不搞透明
    apoclast
        2
    apoclast  
       2011-04-24 13:05:29 +08:00
    在你想用的png图片上加一道dx滤镜就可以了,具体请google
    zythum
        3
    zythum  
       2011-04-24 13:17:46 +08:00
    ie6 png

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

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

    在 IE6 下背景图定位不准,相差一两个像素。
    whitegerry
        13
    whitegerry  
       2011-04-28 17:57:17 +08:00
    @romoo 这个倒没遇到过
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2262 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 00:40 · PVG 08:40 · LAX 17:40 · JFK 20:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.