<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 除外"的条件注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Fetch multiple links inside foreach loop(在 foreach 循环中获取多个链接)
                  Backbone Fetch Request is OPTIONS method(Backbone Fetch Request 是 OPTIONS 方法)
                  Fetch API leaks memory in Chrome(Fetch API 在 Chrome 中泄漏内存)
                  How can I download and save a file using the Fetch API? (Node.js)(如何使用 Fetch API 下载和保存文件?(Node.js))
                  Send blob data to node using fetch, multer, express(使用 fetch、multer、express 将 blob 数据发送到节点)
                  Sending a custom User-Agent string along with my headers (fetch)(发送自定义用户代理字符串以及我的标头(获取))

                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>