请任何人对此进行解释-> Web.config条目: [英] Please any one explain about this-->Web.config Entry:

查看:62
本文介绍了请任何人对此进行解释-> Web.config条目:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请对此进行任何解释-> Web.config条目:

Please any one explain about this-->Web.config entry:

<xhtmlconformance mode="Legacy" />

推荐答案

基本上,这就是说XHTML会禁止的HTML元素,输出仍将呈现.简单地说,这具有将输出呈现为HTML而不是XHTML的效果.这不一定是一件好事-最好解决您的标记不符合XHTML的原因,而不是依靠这种行为,因此,如果我是我,我将删除该标记来测试该网站或设置为严格",看看有什么坏处.
Basically, this is saying that HTML elements that would be prohibited by XHTML, the output will still be rendered. Simplistically, this has the effect of rendering the output as HTML rather than XHTML. This isn''t necessarily a good thing - it''s better to fix the reasons your markup isn''t XHTML compliant than it is to rely on this behaviour, so if I were you I would test the site with this flag removed or set to strict, and see what breaks.


这篇关于请任何人对此进行解释-&gt; Web.config条目:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆