IE8 XP 中存在 CSS 问题,但 IE8 Vista 或 7 中没有 CSS 问题

发布于 2024-09-11 00:50:09 字数 1306 浏览 2 评论 0原文

我为我们在工作中发起的活动实现了登陆页面设计,并在我的 XP 工作机器上的 IE 7 和我家里的 7 机器上的 IE 8 上进行了测试。这些都有效,所以我以为我已经打败了 IE,但事实证明,不同操作系统的 IE 渲染 HTML 的方式不同,即使它们声称是相同的浏览器。

任何使用 XP 和 IE8 的人都根本无法正确看到该网站。

我使用两个不同的 CSS 链接。一个用于 IE,一个用于 !IE:

<!--[if IE]>
<link href="../images/content/pagebuilder/idop_2010/free-to-believe-IE.css" rel="stylesheet" type="text/css" />
<![endif]-->

<!--[if !IE]><!-->
<link href="../images/content/pagebuilder/idop_2010/free-to-believe.css" rel="stylesheet" type="text/css" />
 <!--<![endif]-->

我必须使用 !IE,因为 IE 仍在从良好的样式表中提取 CSS,并且 IE 表无法正确更新(另一个问题)。

如果我创建 IE 特定的 CSS(IE7/IE8 与仅 IE)可以解决问题吗?

解决操作系统 + IE 问题的好方法是什么?


编辑

我在我的工作计算机上安装了 IE 8,它与所有其他 IE 8 计算机有相同的问题。我有 Internet Explorer 开发工具,我注意到 IE 正在“IE8 标准模式”下运行,当我将其切换到“IE7 标准模式”时,布局工作得很好。我还注意到在装有 Windows 7 的笔记本电脑上,兼容模式图标已激活。当我关闭它时,我能够重复我的问题。所以现在我确定这是一个 IE8 问题,不一定是操作系统问题。

我现在已经创建了一个 IE8 特定的样式表,我将开始对其进行彻底修改以使其看起来正确。

这是网站: http://members.opendoorsusa.org/site/PageServer?pagename =IDOP_2010

有人想看看它并给我有关 CSS 的建议,我将不胜感激(我没有做设计,只是实现,所以请不要提出设计批评)

如果 我知道这是问题所在,我还有一个问题。为什么 IE 8 的显示效果与 IE7 如此不同?!

I've implemented a landing page design for a campaign we are launching at work, and did testing on IE 7 on my XP machine at work and IE 8 on my 7 machine at home. These both worked and so I thought I had beaten IE, but as it turns out, different OS's IE render HTML differently even though they claim to be the same browser.

Anyone who has XP and IE8 will not see the site correctly at all.

I use two different CSS links. One for IE and one for !IE:

<!--[if IE]>
<link href="../images/content/pagebuilder/idop_2010/free-to-believe-IE.css" rel="stylesheet" type="text/css" />
<![endif]-->

<!--[if !IE]><!-->
<link href="../images/content/pagebuilder/idop_2010/free-to-believe.css" rel="stylesheet" type="text/css" />
 <!--<![endif]-->

I had to use !IE because IE was still pulling CSS from the good stylesheet, and the IE sheet wouldn't update correctly (a different issue).

If I create IE specific CSS (IE7/IE8 vs just IE) could that fix the problem?

What's a good way to overcome an issue of Operating Systems + IE?


Edit

I installed IE 8 on my work computer and it has the same problem as all the other IE 8 computers. I have Internet Explorer developer tools, and I noticed that IE was running in "IE8 Standards Mode" When I switched it to "IE7 Standards Mode" the layout worked perfectly. I also noticed on my laptop with Windows 7, that the compatibility mode icon was activated. When I turned it off, I was able to duplicate my problem. So now I know for sure it's an IE8 issue in general, not necessarily an OS issue.

I've now created an IE8 specific stylesheet which I'm going to start overhauling to get it looking right.

Here is the site: http://members.opendoorsusa.org/site/PageServer?pagename=IDOP_2010

Anyone who wants to take a look at it and give me suggestions as far as CSS is concerned, I would appreciate it (I didn't do the design, just implementation, so no design critiques please)

Now that I know that this is the problem, I have another question. Why in the world does IE 8 display so different than IE7?!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

‖放下 2024-09-18 00:50:09

克服 IE 问题的最佳方法是使用条件注释:

<!--[if IE 8]>
... link IE 8 specific stylesheet...
<![endif]-->

看起来您已经了解条件,所以只需尝试 IE8 特定的样式表,看看它是否有效。

看看这个。理论上,不应该有不同版本的 Windows 和 IE 8 上的同一网页之间存在任何差异,但 ActiveX 和字体渲染可能存在例外。

让我知道 IE8 特定样式表是否适合您。

The best way to overcome IE issues is to use conditional comments:

<!--[if IE 8]>
... link IE 8 specific stylesheet...
<![endif]-->

It seems like you already know about the conditionals so just try an IE8 specific stylesheet and see if it works.

Check this out. In theory, there shouldn't be any differences between different versions of Windows and the same web page on IE 8, but there may be exceptions with ActiveX and possibly the rendering of fonts.

Let me know if an IE8 specific stylesheet works for you.

心房的律动 2024-09-18 00:50:09

您是否使用过JQuery UI Themeroller?我刚刚也发现了一个 CSS 错误,该错误仅在 XP 中出现,在 Vista 中没有。 UI 选项卡和手风琴缺少标题文本。我将问题归结为由 Jquery UI Themeroller 生成的自定义主题。使用预构建主题替换自定义主题解决了该问题。

Did you use the JQuery UI Themeroller? I just discovered a css bug as well that was only in XP, not in Vista. UI tabs and accordions were missing header text. I isolated the issue down to a custom generated theme made by the Jquery UI Themeroller. Replacing the custom theme with a prebuilt theme fixed the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文