DotNetNuke 使用具有透明度的 PNG 图像
我有一个 DotNetNuke 网站,其中我的主要徽标是使用透明度的 PNG 文件。 我尝试过 GIF,但质量不够好。
无论如何,它在 IE7 上运行得很好,但我刚刚在 IE6 中看到我的网站,并注意到透明度不适用于我的徽标。
有谁知道在 DotNetNuke 门户中解决此问题的快速方法?
I have a DotNetNuke site where my main logo is a PNG file using transparency. I tried GIF but the quality wasn't good enough.
Anyways it worked great on IE7 but I just saw my site in IE6 and noticed that the transparency isn't working with my logo.
Does anyone know of a quick way to fix this in a DotNetNuke portal?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
它与 DotNetNuke 无关,它是 IE6 的事情。 IE6 不能很好地处理某些透明 PNG。
It has nothing to do with DotNetNuke, it's an IE6 thing. IE6 doesn't do very well with certain transparent PNG.
dotnetnuke.com 论坛上有一些关于此问题的讨论,但我在搜索中的日期标准错误,因此我之前没有看到任何回复并认为我会在这里询问。
我想我从 dotnetnuke 的角度找到了我正在寻找的东西,它是您安装在页面上的一个模块,可以自动修复此问题。 但不幸的是你必须为此付出代价。 (我不会发布链接,因为我不想让人们认为我只是为了给他们做广告。)
There are some discussions regarding this on dotnetnuke.com forums, but I had the wrong date criteria in my search so the reason I didn't see any responses previously and thought I would ask here.
I think I found what I am looking for from a dotnetnuke perspective its a module that you install on your page which fixes this problem automatically. But unfortunately you have to pay for it. (I won't post the link since I don't want people thinking I was am asking just to advertise for them.)
谷歌搜索“pngfix”应该可以找到很多不同的技术来在 IE6 中启用 alpha 透明度。
一种常见的文件是 HTC 行为文件。
Googling "pngfix" should find a lot of different techniques for enabling alpha transparency in IE6.
One common one is a HTC behaviour file.
你不能。 IE6 仅支持特定且视觉上丑陋的 PNG 透明度版本。 我相信是 PNG-8。
您可以使用 条件注释 以不同方式处理 IE6:
You can't. IE6 only supports a specific, and visually ugly, version of PNG transparency. I believe its PNG-8.
You can use a conditional comment to handle IE6 differently:
IE6 不支持透明 PNG。 这不是 DotNetNuke 问题。 您可以尝试研究一些有助于 IE6 的 JavaScript 解决方案。
IE6 doesn't support transparent PNGs. It isn't a DotNetNuke issue. You could try looking into some JavaScript solutions that help with IE6.
对于解决该问题的 DotNetNuke 特定方法,您可以安装 DotNetNuke Widget Suite,并使用 IE PNG Fix 小部件 在您的网站上(可能将其包含在您的皮肤中)。
也就是说,如果您无论如何都需要将某些东西集成到您的皮肤中,那么该小部件不会给您带来太多优势。 如果您能够评估并整合已接受答案中的技术,那么这可能是更好的选择。
For a DotNetNuke-specific way to fix the issue, you can install the DotNetNuke Widget Suite, and use the IE PNG Fix widget on your site (probably include it in your skin).
That said, if you're going to need to integrate something into your skin anyway, the widget doesn't give you a whole lot of advantage. If you're able to evaluate and integrate the techniques in the accepted answer, that's probably a better route to take.
我不知道这是 DotNetNuke 的问题,还是 IE6 的问题。 无论如何,这里有一个网站向您展示如何解决 IE6 的 png 问题。 希望能帮助到你。
http://24ways.org/2007/supersleight-transparent-png-in- ie6
I don't know that it's a DotNetNuke issue as much as it is IE6. Anyways, here's a site that shows you how to work around IE6's png issues. Hope it helps.
http://24ways.org/2007/supersleight-transparent-png-in-ie6