【问题标题】:IN IE6, how to position transparent PNG using filter?在 IE6 中,如何使用过滤器定位透明 PNG?
【发布时间】:2011-04-30 11:49:54
【问题描述】:

我有以下 CSS:

background-div:  url(/images/top.png) no-repeat top center;

我正在为 IE6 使用以下过滤器:(透明 PNG 黑客)

filter:progid:DXImageTransform.Microsoft.AlphaImageLoader
   (src='/images/top_arrow.png',sizingMethod='scale');

如何将背景位置(即顶部中心)添加到过滤器?

【问题讨论】:

  • 这种做法导致我的网站在 IE8&9 中完全崩溃。

标签: css png transparent internet-explorer-6


【解决方案1】:

此方法有严格限制,不能添加背景位置。

让我建议您尝试使用this method,它比您现在使用的简单方法具有更大的灵活性。它经过多年的设计,是我遇到的最好的修复方法(并且有很多修复方法。)

【讨论】:

    猜你喜欢
    • 2010-10-16
    • 1970-01-01
    • 2011-09-19
    • 1970-01-01
    • 1970-01-01
    • 2011-06-15
    • 2010-09-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多