iis指定文档类型
我有一个 ASP .Net 页面,在我的本地主机和办公室测试环境中,按照 Visual Studio 的指定,以过渡模式显示,但在客户测试环境中,它显示为严格模式。我在客户测试环境中托管的其他网站的其他页面中看到了相同的行为。那么,问题是:是否可以告诉IIS以我发布页面的模式渲染页面???
提前致谢。
I have an ASP .Net page that, in my localhost and in the office testing environment is displaying in transitional mode, as specified by Visual Studio, but at customer testing environment it's displaying as Strict mode. I see this same behavior in other pages of other websites hosted in the customer testing environment. So, the question is: Is it possible to tell IIS to render pages in the mode I publish the page???
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
DOCTYPE
在您使用的.ASPXs
或.master
文件中定义。客户端站点上的页面或母版页是不同的,希望不是这样,但它可能根本没有定义,这让浏览器决定要做什么。The
DOCTYPE
is defined in your.ASPXs
or your.master
files being used. Either the page or your master page is different at the client site and hopefully not this, but it may not be defined at all, which lets the browser decide what to do.