IE6的梯度不工作 [英] Gradient for IE6 not working

查看:119
本文介绍了IE6的梯度不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网页上有几个div,使用IE css过滤器为背景创建渐变效果。

I have several divs on a webpage that use the IE css filter to create a gradient effect for the background.

页面主要在IE6中查看没有其他选择不幸)和显示罚我的开发机。我也尝试使用IETester查看页面,页面也显示在IE 5.5到IE 8的罚款。

The page is viewed primarily in IE6 (I have no other choice unfortunatly) and displays fine on my development machine. I have also tried viewing the page using IETester and the page also displays fine in IE 5.5 to IE 8.

但是,当在实时机器上查看页面时,梯度根本没有出现。 live机器上的浏览器是带有sp3的IE 6。我已经检查了div和他们都有hasLayout,所以这不是问题。

However, when viewing the page on the "live" machine, the gradients don't show up at all. The browser on the "live" machine is IE 6 with sp3. I have checked the div's and they all have "hasLayout" so that isn't the problem.

在IE中有任何设置将停止过滤器工作,或任何人建议任何其他原因,他们不会出现。我不能解决为什么他们在一个版本的IE 6工作,但不是另一个。

Are there any settings within IE that would stop filters working or could anybody suggest any other reasons why they would not be showing up. I can't work out why they work in one version of IE 6 but not another.

不幸的是,我不能链接到任何例子。

Unfortunatly I can't link to any examples.

感谢

推荐答案

过滤器 IE的功能不内置在浏览器中;他们使用外部库(DLL)。这是'progid'的一部分,也解释了为什么有些是如此笨重。

The filter features of IE are not built into the browser; they are using external libraries (DLLs). This is what the 'progid' part is all about, and also explains why some of them are so clunky.

如果这些DLL没有安装在客户端机器上, 过滤器样式将无法工作。如果它在某些IE6机器,但不是其他人,这几乎肯定是你遇到的问题。

If those DLLs are not installed on the client machine, then the filter styles won't work. If it works in some IE6 machines but not others, then this is almost certainly the problem you're encountering.

理论上,应该可以解决这个问题,安装缺少的DLL。

Theoretically it should be possible for you to fix the problem by installing the missing DLLs.

但是,你的问题是,如果客户端肛门足够没有从IE6升级他们的浏览器, 不会想让你在他们的机器上安装未知的(对他们的)库。在任何情况下,你必须为每个单独的机器。

However, the problem for you is that if the client is anal enough not to have upgraded their browser from IE6 yet, then it's pretty certain that they're not going to want to have you fiddling around on their machines installing unknown (to them) libraries. In any case, you would have to do it for every individual machine.

底线是,现实地,这不是一个选项。你最好的打赌是放弃尝试让IE6做奇特的东西,并回到使用背景图像为您的渐变。这是不愉快的写作,但有一个原因,当IE6是标准浏览器时,每个人都习惯这样做。

The bottom line is that realistically this is not going to be an option. Your best bet is to give up trying to make IE6 do fancy stuff, and go back to using background images for your gradients. It's not pleasant to write, but there is a reason why everyone used to do it that way when IE6 was the standard browser.

这篇关于IE6的梯度不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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