I just noticed that when I typed in "cnn.com" into the IE11 address bar (Windows 10), that it automatically launched the website in Edge (Chromium) instead, then rendered this bar at the top of the site in Edge.
(看起来如果这是 IE 中唯一的选项卡,它会自动关闭 IE)
I like这种新行为可以帮助用户从 IE 迁移过来,但遗憾的是我无法检测到 CNN 是如何通过代码明智地完成此操作的。
我查看了 Fiddler,扫描了 HTTP 标头以及网站上的元标记...例如
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
以及仅 IE 的注释标签:
<!--[if lte IE 9]><meta http-equiv="refresh" content="1;url=/2.250.0/static/unsupp.html" /><![endif]-->
但我没有看到任何具体的事情似乎会触发这个? ID当然喜欢在我工作的一些网站/应用程序中应用类似的行为。
FWIW, it also triggers (if you try it enough times) this message to remain in IE11: