开发者

IN IE6, how to position transparent PNG using filter?

开发者 https://www.devze.com 2023-01-22 03:44 出处:网络
I have following CSS:开发者_JAVA百科 background-div:url(/images/top.png) no-repeat top center; and I am using the following filter for IE6: ( Transparent PNG Hack)

I have following CSS:开发者_JAVA百科

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

and I am using the following filter for IE6: ( Transparent PNG Hack)

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

How can I add the background position (i.e. top center) to the filter?


There are heavy restrictions on this method and you cannot add the background position.

Let me suggest trying out this method instead, it allows much more flexibility than the simple approach you're doing now. It's been engineered over the years and is the best fix I've encountered (and there are quite a few fixes out there.)

0

精彩评论

暂无评论...
验证码 换一张
取 消