【发布时间】:2011-09-18 15:37:53
【问题描述】:
如何添加条件,以便在用户运行 IE6 或更低版本时不加载某些 javascript。我尝试了以下方法,但 <script> 没有在任何浏览器中加载:
<!--[if gt IE 6]>
<script blah blah blah... />
<![endif]-->
<!--[if ! IE 6]>
<script blah blah blah... />
<![endif]-->
<!--[if !IE 6]>
<script blah blah blah... />
<![endif]-->
我们将不胜感激。
【问题讨论】:
标签: javascript html internet-explorer conditional-comments