【问题标题】:How to fix "png opacity" and still support positioning at the same time?如何修复“png不透明度”并同时支持定位?
【发布时间】:2010-11-25 23:30:21
【问题描述】:

alt text http://maishudi.com/icons_ns6.png

如何纠正它,使其始终像在 Firefox 中一样?

编辑

我尝试了一些修复,但对我不起作用,

我在我的应用程序中使用了类似下面的东西:

background:transparent url(../static/icons_ns6.png) no-repeat scroll 0 -80px;

说,我需要定位背景图片。

【问题讨论】:

  • 你用的是哪个版本的IE?
  • 顺便说一句 - 如果是 IE6,我在 FF 3 和 IE7 上都可以正常工作,那么 IE6 就有这个透明度问题

标签: css png background-color


【解决方案1】:

IE 以其在 PNG 中的透明度问题而闻名。这里有很多关于此的主题:例如this one

【讨论】:

  • 帖子中标记为答案的网址已过时。还有另一个吗?
【解决方案2】:

iepngfix.htc available here 支持背景定位。甚至在 IE5.5 中也可以让 PNG 透明化!

【讨论】:

    【解决方案3】:

    这对我很有用:CSS Opacity in Internet Explorer (IE)

    注意怪癖并使用 CSS“缩放”属性。 YMMV。

    【讨论】:

      猜你喜欢
      • 2011-03-17
      • 1970-01-01
      • 2012-07-27
      • 1970-01-01
      • 2011-06-08
      • 2012-03-29
      • 2013-04-11
      • 2011-10-14
      • 2022-01-25
      相关资源
      最近更新 更多