如何在IE中加载脚本? [英] How not to load a script in IE?
本文介绍了如何在IE中加载脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以在IE中加载带有条件评论的脚本
It's possible to load a script only in IE with conditional comments
<!--[if lte IE 7]>
<script type="text/javascript" src="somescript.js"></script>
<![endif]-->
但如果我不想要在IE中加载它会怎么样? 7(但在所有其他浏览器中仍然需要它)?
but what if I don't want to load it in IE lte 7 (but still need it in all other browsers)?
任何简单的解决方案?
PS我有一个SyntaxHighlighter的问题 - 太多的代码减慢了IE7的速度,因为我的时间不够,我决定暂时把它关掉IE7。
P.S. I have a problem with SyntaxHighlighter - too many code slows IE7 down and since I'm short of time, I decided just to turn it off in IE7 for now.
推荐答案
这篇文章说你可以使用!
(NOT)运算符,如 [if!IE]
This post says you can use the !
(NOT) operator like [if !IE]
这篇关于如何在IE中加载脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文