frostbelt

出现时机:

png透明背景图,24位或32位,在ie6下背景为蓝色

解决一:

用Photoshop将图片转化为8位,在css里设置_background兼容ie6

解决二:

用滤镜

	width:32px;
	height:178px;
	background:url(aa.png) no-repeat 0 0;
	_background:0;
	_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=scale,src="aa.png")

方法一的缺点是需要转化图片。方法二的缺点是不能设置background-position

如果是组合图片,又想用方法二,可以为父元素设置width, height, overflow:hidden; 再为子元素设background,filter,用margin设位置

分类:

技术点:

相关文章:

  • 2021-12-15
  • 2021-12-15
  • 2021-12-14
  • 2021-12-25
  • 2022-01-18
  • 2022-12-23
  • 2021-11-18
  • 2022-02-10
猜你喜欢
  • 2021-12-04
  • 2022-02-26
  • 2022-01-15
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案