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

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

    1. <legend id='PTpWd'><style id='PTpWd'><dir id='PTpWd'><q id='PTpWd'></q></dir></style></legend>

      1. 元素开始标签内的 HTML 注释

        时间:2023-07-31

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

          • <bdo id='sFzkx'></bdo><ul id='sFzkx'></ul>

            <tfoot id='sFzkx'></tfoot>

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

                  本文介绍了元素开始标签内的 HTML 注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  当我尝试这个时

                  <option disabled = "disabled" <!-- Used to disable any particular option -->
                          selected = "selected" <!-- Used to pre-select any particular option -->
                          label = "string"      <!-- Used to provide a short version of the content in the option --> 
                          value = "value">      <!-- The actual value that will be send to the server. If omitted the content between the option opening and closing tags will be send. -->
                  
                  Option 1
                  </option>
                  

                  我试图在元素的开始标签内注释属性和值.但是,这不起作用,因为浏览器(在 IE9、FF4.01、GG11、AF5 和 Opera11 上测试)将 disabled="disabled" 之后的所有内容视为评论或内容.

                  I am trying to comment the attributes and values inside the openning tag of the element. However this does not work as browsers (tested on IE9, FF4.01, GG11, AF5 and Opera11) treat everything followed after the disabled="disabled" as either comment or content.

                  HTMl Comments 是否不允许在元素的开始标签内?

                  Are HTMl Comments not allowed inside the opening tag of elements?

                  推荐答案

                  HTML 注释根本不允许在 inside 标签内,无论是开始还是结束.

                  HTML comments are not allowed inside tags, start or end, at all.

                  这篇关于元素开始标签内的 HTML 注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:使用 jsdoc 记录匿名对象和函数的最佳方式 下一篇:HTML5 <command> 到底是什么?标签和浏览器支持是什么

                  相关文章

                      <bdo id='OBiym'></bdo><ul id='OBiym'></ul>
                    1. <legend id='OBiym'><style id='OBiym'><dir id='OBiym'><q id='OBiym'></q></dir></style></legend>

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

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