html – 如果条件语句不能与IE 11一起使用

html – 如果条件语句不能与IE 11一起使用,第1张

概述参见英文答案 > IF IE conditionals not working                                    5个 我正在使用IE 11版本. 有没有其他解决方案来执行以下 *** 作: 当我尝试在html webapge中使用条件IE子句时没有任何反应. 任何人都可以帮我调试这个问题. <!--[if IE]> <a href="next-page.p 参见英文答案 > IF IE conditionals not working5个
我正在使用IE 11版本.
有没有其他解决方案来执行以下 *** 作:

当我尝试在HTML webapge中使用条件IE子句时没有任何反应.
任何人都可以帮我调试这个问题.

<!--[if IE]>      <a href="next-page.PHP" >CliCK ME</a>      <![endif]-->
解决方法 Conditional statements do not work in IE 10 or 11

Support for conditional comments has been removed in Internet Explorer 10 standards and quirks modes for improved interoperability and compliance with HTML5. This means that Conditional Comments are Now treated as regular comments,just like in other browsers. This change can impact pages written exclusively for windows Internet Explorer or pages that use browser sniffing to alter their behavior in Internet Explorer.

如果你真的需要在这些浏览器上执行代码,而你可能不应该这样做,你可以使用JavaScript来做一些feature detection作为替代.

总结

以上是内存溢出为你收集整理的html – 如果条件语句不能与IE 11一起使用全部内容,希望文章能够帮你解决html – 如果条件语句不能与IE 11一起使用所遇到的程序开发问题。

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

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

原文地址: https://outofmemory.cn/web/1132998.html

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

发表评论

登录后才能评论

评论列表(0条)

保存