一般写CSS的都知道IE6下不支持透明的PNG格式图片,平常我们的最简单解决办法是把透明的PNG图改成GIF格式的。

今天偶然看到一个关于专门的ie6 css hack:
img {_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/images/recent_deals_price_tag.gif.png', sizingMethod='image');}

但是有一个缺点:不可循环平铺

 

例子:
.png{
width: XXpx;
height: XXpx;
background: url(XX.png) !important;
_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='image',src='XX.png');
}

相关文章:

  • 2022-12-23
  • 2021-09-12
  • 2022-12-23
  • 2021-11-02
  • 2021-06-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
  • 2022-02-25
相关资源
相似解决方案