问题描述
我有一个在Visual Studio中开发的网站,并使用随VS推出的IIS Express进行测试。
测试阶段的一切都很好。该网站在Firefox和IE中看起来都不错。
I have a website developed in Visual Studio, and tested with the IIS Express coming with VS.Everything is fine in the testing phase. The website looks good both in Firefox and IE.
但是当上传到IIS服务器时,该网站通常只在Firefox中呈现。在IE中蹩脚。
But when uploaded to the IIS Server, the site is only normally rendered in Firefox. Crappy in IE.
我发现DOCTYPE自动从Transitional变为Strict。他们为什么改变这个?我们如何强制IIS正确显示?
I found the DOCTYPE was automatically changed from "Transitional" into "Strict". Why do they change this? And how can we force the IIS to display correctly?
推荐答案
你在同一个域名吗?如果是这样,IE会自动强制一个进入内联网友好兼容模式。请参阅,了解强制它避免此问题的方法。
Are you on the same domain? If so, IE automagically forces one into intranet-friendly compatibility mode. See this answer for a method to force it to avoid that.
这篇关于强制IIS允许过渡doctype的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!