IE8 本地网站与生产网站...文件相同但结果不同

发布于 2024-09-29 21:23:55 字数 462 浏览 3 评论 0原文

对于整个网络开发来说还是有点新鲜。这个问题会有点模糊,我只是在接受一些指示和指示之后。

这里有一个奇怪的问题。问题是我有这个显示一些项目的 php 文件。当在本地测试时,它的布局是我所期望的,但是当它被放置在生产网络服务器上时,它显示在另一个布局中,而不是我想要的。

请注意,生产服务器使用稍旧版本的 php 和 apache。

此问题仅出现在 IE8 中,当使用 IE8 测试本地文件时,它很好,但当它进入生产网络服务器时,它会错误地显示该项目。使其正确显示的唯一方法是单击“兼容性视图”按钮。所以我有点困惑,同一个浏览器,访问相同的文件,除了一个是本地的,而另一个是在线的,会产生不同的结果。

ps,用Firefox或Chrome,没问题。

所以我想知道除了 html 和 css 编码之外,任何 php 或 apache 设置是否会导致 IE8 与本地和 IE8 中的这种不一致。生产文件?

非常感谢提前!

A bit new to this whole web development thing still. This question will be bit vague as well as Im just aftering some pointers and directions.

Got an odd issue here. The issue is that I have this php file that displays some items. When tested locally, its layout is what I expected but when it is placed on production webserver it displayed in another layout, not what I wanted.

note, production server uses a slightly older version of php and apache.

This issue only occurs in IE8, when testing local file with IE8, its fine, but when it goes to the production webserver it displays the item incorrectly. The only way I can get it displaying correct is to click on the Compatibility View button. So Im a bit stumped, same browser, accessing identical files, except one is local while another is online results in different outcome.

ps, with Firefox or Chrome, not a problem.

So i was wondering apart from html and css coding, can any php or apache settings cause this inconsistency in IE8 with local & production files?

Much appreciated in advance!

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

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

发布评论

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

评论(1

欢烬 2024-10-06 21:23:55

Intranet 区域站点在 IE8 中默认以兼容模式呈现,而本地站点和公共站点则不然,这是造成差异的最可能原因。

http://support.microsoft.com/kb/956197

为本地 Intranet 打开 Internet Explorer 标准模式:此设置对所有 Intranet 网站禁用兼容性视图(启用标准模式)。

Intranet zone sites render in compatibility mode by default in IE8 while local sites and public sites do not, this is the most likely cause of the difference.

http://support.microsoft.com/kb/956197

Turn on Internet Explorer Standards Mode for Local Intranet: This setting disables Compatibility View (enables Standards Mode) for all intranet Web sites.

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