已部署的应用程序在 IE8 中显示不同

发布于 2024-10-20 18:13:37 字数 172 浏览 2 评论 0原文

我使用 Visual Studio 2008 内置 Web 服务器在本地开发了一个应用程序,它在每个浏览器上都运行良好且整洁。

当我们在IIS6上部署并在IE8上打开时,出现了渲染问题。字体比其他浏览器大(仍然漂亮整洁),并且一些组件只是移动了。生成的 HTML 与其他的相同。

如何解决这个问题?

I developed an application locally using the Visual Studio 2008 built-in web server and it is running nice and neat on every single browser.

When we deployed it on the IIS6 and open it on IE8, there are rendering issues. The fonts are bigger than the other browsers (which are still nice and neat) and some components just moved around. The generated HTML is the same as the others.

How can this be fixed?

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

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

发布评论

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

评论(2

灯角 2024-10-27 18:13:37
  1. 您使用的是哪种 DOCType - 您处于“怪异模式”还是“标准模式”?
  2. 您是否使用 CSS 重置?
  3. 您使用的是 IE7 兼容性标签吗?

有多种方法可以修复“错误”的问题,但如果不查看代码,就很难确定问题所在。

IEMode

在 IE8 中按 F-12 并查看您所处的浏览器模式。如果您处于“怪异模式”,则有麻烦了。

  1. Which DOCType are you using - are you in "quirks mode" or "standards mode"?
  2. Are you using a CSS reset?
  3. Are you using the IE7 compatibility tag?

There are ways to fix what's "wrong" but without seeing your code, determining what's wrong is difficult.

IEMode

Press F-12 in IE8 and see what browser mode you are in. If you're in "quirks mode" you're in trouble.

这个俗人 2024-10-27 18:13:37

感谢 Diodeus 和三十点,我们找到了解决这个问题的方法。

元标记“X-UA-Compatible”允许您控制 Internet Explorer 解释和显示网页的方式。当我设置时,它会覆盖 IIS 6.0 将 IE 8.0 置于的 ie7 呈现模式。

以下是一些有用的信息:

http:// msdn.microsoft.com/en-us/library/cc288325(v=vs.85).aspx

Thanks to Diodeus and thirtydot we figured out how to solve the problem.

The meta tag "X-UA-Compatible" allow you to control the way Internet Explorer interprets and displays your webpage. when i set , it overrides the ie7 rendering mode that IIS 6.0 puts IE 8.0 into.

Here is some useful information about that:

http://msdn.microsoft.com/en-us/library/cc288325(v=vs.85).aspx

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