gpt4 book ai didi

javascript - 'Except IE8' 的条件注释 ?

转载 作者:太空狗 更新时间:2023-10-29 14:39:11 24 4
gpt4 key购买 nike

我正在使用 <!--[if IE 8]><![endif]-->用于针对 IE8,但是我想为除 IE8 之外的所有浏览器加载一些 JS,我应该使用什么条件注释?

编辑:我想知道这是否可行:<!--[if lte IE 8]><![endif]-->

谢谢

最佳答案

there's some JS that I want to load for all browsers EXCEPT IE8, what conditional comment should I use?

要让某些内容出现在不支持 CC 的“其他浏览器”中,您需要 downlevel-revealed条件注释。

<!--[if !IE 8]><!-->
....
<!--<![endif]-->

(这与 Microsoft 的官方语法略有不同,它不是有效的 HTML。)

“除 IE8 之外的所有浏览器”是一个不寻常的要求,您确定这是您想要的吗? IE 的 future 版本如何?

关于javascript - 'Except IE8' 的条件注释 ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1692129/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com