<legend id='W5ROM'><style id='W5ROM'><dir id='W5ROM'><q id='W5ROM'></q></dir></style></legend>

      <tfoot id='W5ROM'></tfoot>
    1. <i id='W5ROM'><tr id='W5ROM'><dt id='W5ROM'><q id='W5ROM'><span id='W5ROM'><b id='W5ROM'><form id='W5ROM'><ins id='W5ROM'></ins><ul id='W5ROM'></ul><sub id='W5ROM'></sub></form><legend id='W5ROM'></legend><bdo id='W5ROM'><pre id='W5ROM'><center id='W5ROM'></center></pre></bdo></b><th id='W5ROM'></th></span></q></dt></tr></i><div id='W5ROM'><tfoot id='W5ROM'></tfoot><dl id='W5ROM'><fieldset id='W5ROM'></fieldset></dl></div>
        <bdo id='W5ROM'></bdo><ul id='W5ROM'></ul>

        <small id='W5ROM'></small><noframes id='W5ROM'>

      1. “IE8 除外"的条件注释?

        Conditional comment for #39;Except IE8#39;?(“IE8 除外的条件注释?)
            <bdo id='8l9gR'></bdo><ul id='8l9gR'></ul>

            <legend id='8l9gR'><style id='8l9gR'><dir id='8l9gR'><q id='8l9gR'></q></dir></style></legend>
            <tfoot id='8l9gR'></tfoot>

              <i id='8l9gR'><tr id='8l9gR'><dt id='8l9gR'><q id='8l9gR'><span id='8l9gR'><b id='8l9gR'><form id='8l9gR'><ins id='8l9gR'></ins><ul id='8l9gR'></ul><sub id='8l9gR'></sub></form><legend id='8l9gR'></legend><bdo id='8l9gR'><pre id='8l9gR'><center id='8l9gR'></center></pre></bdo></b><th id='8l9gR'></th></span></q></dt></tr></i><div id='8l9gR'><tfoot id='8l9gR'></tfoot><dl id='8l9gR'><fieldset id='8l9gR'></fieldset></dl></div>
                  <tbody id='8l9gR'></tbody>
              • <small id='8l9gR'></small><noframes id='8l9gR'>

                  本文介绍了“IE8 除外"的条件注释?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

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

                  I'm using <!--[if IE 8]><![endif]--> for targeting IE8, but there's some JS that I want to load for all browsers EXCEPT IE8, what conditional comment should I use?

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

                  谢谢

                  推荐答案

                  我能想到一个窍门.在 IE 条件标记内设置一个变量,如果没有设置该变量,则包含您的 JS 代码.

                  I can think of a trick. Set a variable inside the IE conditional tag and include your JS code if that variable isn't set.

                  <script>
                      var ie8 = false;
                  </script>
                  
                  <!--[if IE 8]>
                      <script>
                          ie8 = true;
                      </script>
                  <![endif]-->
                  
                  <script>
                      if (ie8 == false) {
                          // any code here will not be executed by IE 8
                          alert("Not IE 8!");
                      }
                  </script>
                  

                  这篇关于“IE8 除外"的条件注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  在开发JS过程中,会经常遇到两个小数相运算的情况,但是运算结果却与预期不同,调试一下发现计算结果竟然有那么长一串尾巴。如下图所示: 产生原因: JavaScript对小数运算会先转成二进制,运算完毕再转回十进制,过程中会有丢失,不过不是所有的小数间运算会
                  问题描述: 在javascript中引用js代码,然后导致反斜杠丢失,发现字符串中的所有\信息丢失。比如在js中引用input type=text onkeyup=value=value.replace(/[^\d]/g,) ,结果导致正则表达式中的\丢失。 问题原因: 该字符串含有\,javascript对字符串进行了转
                  Rails/Javascript: How to inject rails variables into (very) simple javascript(Rails/Javascript:如何将 rails 变量注入(非常)简单的 javascript)
                  quot;Each child in an array should have a unique key propquot; only on first time render of page(“数组中的每个孩子都应该有一个唯一的 key prop仅在第一次呈现页面时)
                  CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)
                  Ordinals in words javascript(javascript中的序数)

                1. <tfoot id='ZSpOi'></tfoot>

                  <i id='ZSpOi'><tr id='ZSpOi'><dt id='ZSpOi'><q id='ZSpOi'><span id='ZSpOi'><b id='ZSpOi'><form id='ZSpOi'><ins id='ZSpOi'></ins><ul id='ZSpOi'></ul><sub id='ZSpOi'></sub></form><legend id='ZSpOi'></legend><bdo id='ZSpOi'><pre id='ZSpOi'><center id='ZSpOi'></center></pre></bdo></b><th id='ZSpOi'></th></span></q></dt></tr></i><div id='ZSpOi'><tfoot id='ZSpOi'></tfoot><dl id='ZSpOi'><fieldset id='ZSpOi'></fieldset></dl></div>

                  • <bdo id='ZSpOi'></bdo><ul id='ZSpOi'></ul>
                  • <legend id='ZSpOi'><style id='ZSpOi'><dir id='ZSpOi'><q id='ZSpOi'></q></dir></style></legend>

                    <small id='ZSpOi'></small><noframes id='ZSpOi'>

                            <tbody id='ZSpOi'></tbody>