Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我使用<!doctype html>,我是否必须使用<meta http-equiv="X-UA-Compatible" content="IE=edge">来防止 Internet Explorer 的兼容性消息?
<!doctype html>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
多谢你们!
使用<meta http-equiv="X-UA-Compatible" content="IE=edge">将覆盖“在兼容性视图中显示 Intranet 站点”等设置(默认启用)。我发现在处理与旧(IE7 和更旧)页面共享服务器的新页面时,使用元标记很有帮助,但我不确定它是否是首选技术。