IE中png文件的透明度(Transparency of png files in IE)

编程入门 行业动态 更新时间:2024-10-25 19:28:33
IE中png文件的透明度(Transparency of png files in IE)

我在css中设置了背景图像比内容部分略大,以便在y背面有一个阴影,但是在IE中它没有显示透明度。 我用谷歌尝试解决这个问题,没有运气在css中完成图像。

CSS:

#shadow{ width:854; margin-left:auto; margin-right:auto; text-align:left; background-image:url(shadow.png); background-repeat:repeat-y; }

HTML:

<div id="shadow"> </div>

任何帮助都非常感谢,因为我完全失去了这一点。

I have it set up in css to have the background an image slightly bigger than the content section so as to have a shadow behind it that repeats in the y direction but in IE it doesn't show the transparency. I have used google to try to solve this problem with no luck having done the image in css.

CSS:

#shadow{ width:854; margin-left:auto; margin-right:auto; text-align:left; background-image:url(shadow.png); background-repeat:repeat-y; }

HTML:

<div id="shadow"> </div>

Any help is greatly appreciated as I at a total loss on this.

最满意答案

可以在这里找到一个非常好的IE6修复程序

我用它,可以保证它的工作原理。

虽然是JS,但是大多数人最近都开启了它

A very nice png fix for IE6 can be found here

I used it and can assure u it works.

It is JS though, but most people have it turned on lately

更多推荐

本文发布于:2023-07-18 11:41:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1159821.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:透明度   文件   png   Transparency   files

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!