HTML – 为什么这些条件评论告诉我IE8是IE7?

HTML – 为什么这些条件评论告诉我IE8是IE7?,第1张

概述为什么在Internet Explorer 8上使用此 HTML页面: <p><!--[if IE]> According to the conditional comment this is Internet Explorer<br /><! [endif]--><!--[if IE 5]> According to the conditional comment this is In 为什么在Internet Explorer 8上使用此 HTML页面:

<p><!--[if IE]> According to the conditional comment this is Internet Explorer<br /><!    [endif]--><!--[if IE 5]> According to the conditional comment this is Internet Explorer 5<br /> <![endif]--><!--[if IE 5.0]> According to the conditional comment this is Internet Explorer 5.0<br /> <![endif]--><!--[if IE 5.5]> According to the conditional comment this is Internet Explorer 5.5<br /> <![endif]--><!--[if IE 6]> According to the conditional comment this is Internet Explorer 6<br /> <![endif]--><!--[if IE 7]> According to the conditional comment this is Internet Explorer 7<br /> <![endif]--><!--[if gte IE 5]> According to the conditional comment this is Internet Explorer 5 and up<br /><![endif]--><!--[if lt IE 6]> According to the conditional comment this is Internet Explorer lower than 6<br /> <![endif]--><!--[if lte IE 5.5]> According to the conditional comment this is Internet Explorer lower or equal to 5.5<br /> <![endif]--> <!--[if gt IE 6]> According to the conditional comment this is Internet Explorer greater than 6<br /> <![endif]--> </p>

我得到这个结果?

According to the conditional comment this is Internet ExplorerAccording to the conditional comment this is Internet Explorer 7According to the conditional comment this is Internet Explorer 5 and upAccording to the conditional comment this is Internet Explorer greater than 6

我不应该得到ie8吗?

谢谢.

解决方法 唯一看来不正确的评论

According to the conditional comment
this is Internet Explorer 7

浏览器是否处于兼容模式,因为它将呈现为ie7

总结

以上是内存溢出为你收集整理的HTML – 为什么这些条件评论告诉我IE8是IE7?全部内容,希望文章能够帮你解决HTML – 为什么这些条件评论告诉我IE8是IE7?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1041075.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存