透明图像
有谁知道 IE 现在是否支持透明 png 等...?铬也这样吗?
Does anyone know if IE now supports transparent png's etc...? Does chrome as well?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
有谁知道 IE 现在是否支持透明 png 等...?铬也这样吗?
Does anyone know if IE now supports transparent png's etc...? Does chrome as well?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
IE7+ 以及包括 Chrome 在内的所有其他现代浏览器都支持带有 Alpha 通道的 PNG。
IE7-8 中唯一需要注意的缺点是 Alpha 通道不能与 IE 特定的
alpha
过滤器很好地配合,该过滤器通常用作 CSSopacity
的后备。IE7+, and every other modern browser including Chrome, supports PNGs with alpha channels.
The only drawback to watch out for in IE7-8 is that alpha channels do not play nicely with the IE-specific
alpha
filter typically used as fallback for CSSopacity
.每个市长浏览器都会这样做(包括 Chrome)。只有 IE6 没有,但我不认为这是一个问题。所以是的,您可以使用半透明 png。
Every mayor browser does (so that includes chrome). Only IE6 doesn't, but I wouldn't consider that a problem. So yes, you can use semi-transparent png's.
旧版本的 IE 不支持透明度,但有很多修复方法 - 例如, http://jquery.andreaseberhard.de/pngFix/。
The older versions of IE don't support transparency, but there are a lot of fixes out there -- for example, http://jquery.andreaseberhard.de/pngFix/.