如何让 PNG 透明度在本身不支持它的浏览器中工作? [英] How to get PNG transparency working in browsers that don't natively support it?

查看:17
本文介绍了如何让 PNG 透明度在本身不支持它的浏览器中工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们(心爱的)设计师不断创建具有透明背景的 PNG 文件,以便在我们的应用程序中使用.我想确保 PNG 的此功能也适用于旧"浏览器.最好的解决方案是什么?

Our (beloved) designer keeps creating PNG files with transparent backgrounds for use in our applications. I'd like to make sure that this feature of the PNG works in "older" browsers as well. What's the best solution?

在下面编辑

@mabwi &@syd - 我是否同意使用 PNG 不是重点.这是我需要解决的问题!

@mabwi & @syd - Whether or not I agree about the use of a PNG is not the point. This is a problem that I need to solve!

@Tim Sullivan - IE7.js 看起来很酷,但我不认为我想介绍应用程序的所有其他更改.我想要一个专门解决 PNG 问题的解决方案.谢谢你的链接.

@Tim Sullivan - IE7.js looks pretty cool, but I don't think I want to introduce all of the other changes an application. I'd like a solution that fixes the PNG issue exclusively. Thanks for the link.

推荐答案

我在这里找到了一个非常好的解决方案:Unit Interactive ->实验室 ->单位 PNG 修复

I've found what looks to be a very good solution here: Unit Interactive -> Labs -> Unit PNG Fix

更新单元 PNG 也出现在 NETTUTS 上的 PNG 修复选项列表

update Unit PNG is also featured on a list of PNG fix options on NETTUTS

以下是他们网站的亮点:

Here are the highlights from their website:

  • 非常紧凑的 javascript:低于 1kb!
  • 修复了 IE 的过滤器导致的一些交互问题属性.
  • 适用于 img 对象和背景图像属性.
  • 自动运行.您不必定义类或调用功能.
  • 允许自动宽度和自动高度元素.
  • 部署起来超级简单.

这篇关于如何让 PNG 透明度在本身不支持它的浏览器中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆