为什么http-equiv =“X-UA-Compatible”含量=" IE =边缘,铬等于1英寸;未在W3C验证器中验证? [英] Why does http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" is not validated in W3C Validator?

查看:132
本文介绍了为什么http-equiv =“X-UA-Compatible”含量=" IE =边缘,铬等于1英寸;未在W3C验证器中验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有:

I have:

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

http://validator.w3.org/ 我得到这个错误:

On validation in http://validator.w3.org/ I get this error:


http-equiv属性,其值为
X-UA-Compatible必须具有值为IE = edge的内容属性

A meta element with an http-equiv attribute whose value is X-UA-Compatible must have a content attribute with the value IE=edge.

我正在使用 .NET / Razor ,当然还有在本地使用 IIS 。有没有办法解决这个问题,而无需编辑任何 web.config 文件?
感谢转发。

I am working with .NET/Razor and of course locally using IIS. Is there a way to solve this without editing any web.config files? Thanks in forward.

推荐答案

根据 chrome = 1 部分的这个讨论在W3C中是不允许的。

According to this discussion in the W3C, using the chrome=1 part is not allowed.

您可以像这样使用验证:

You can pass the validation by using just like this:

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

这篇关于为什么http-equiv =“X-UA-Compatible”含量=&QUOT; IE =边缘,铬等于1英寸;未在W3C验证器中验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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