html - 为什么 http-equiv ="X-UA-Compatible"内容 ="IE=edge,chrome=1"没有在 W3C Validator 中验证?

标签 html internet-explorer w3c-validation x-ua-compatible

<分区>

我有:

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

关于 http://validator.w3.org/ 中的验证我收到此错误:

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 文件的情况下解决这个问题? 感谢转发。

最佳答案

根据 this在 W3C 的讨论中,不允许使用 chrome=1 部分。

你可以像这样通过验证:

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

关于html - 为什么 http-equiv ="X-UA-Compatible"内容 ="IE=edge,chrome=1"没有在 W3C Validator 中验证?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28108614/

相关文章:

javascript - 在加载页面之前显示 LightBox(或任何 JQuery 模态弹出窗口)

javascript - 在 JavaScript 中呈现安全的 HTML 子集

ASP.NET 母版页 - IE 中的重新加载闪烁问题

css - Internet Explorer 中的 CSS 翻转问题

css - 将 calc 与 rem 和 px 一起使用时解析错误

javascript - 表格鼠标悬停

java - Spring Boot Thymeleaf 下拉列表选项不显示值

javascript - 对 Internet Explorer 8 及以下版本的 SVG 支持

html - 即使 html 文件没有错误,标记验证也没有显示绿色横幅

seo - 验证错误 : "The itemprop attribute was specified, but the element is not a property of any item"