Is there a JavaScript PNG fix for IE6 that allows CSS background positioning?

前端 未结 6 987
你的背包
你的背包 2021-02-05 21:24

I\'ve seen a few fixes for allowing PNG images to have transparency in Internet Explorer 6, but I\'ve yet to find one that also allows you to set the background position in CSS.

6条回答
  •  -上瘾入骨i
    2021-02-05 22:15

    You can actually use pure CSS to get positioned background images with alpha transparency in IE6 by taking advantage of IE6's alpha filters and the CSS clip property. Julien Lecomte describes the technique on his blog.

    Note that this technique does result in a performance hit for each use of an alpha filter.

提交回复
热议问题