• <small id='8LLBd'></small><noframes id='8LLBd'>

  • <tfoot id='8LLBd'></tfoot>
      <bdo id='8LLBd'></bdo><ul id='8LLBd'></ul>
    <legend id='8LLBd'><style id='8LLBd'><dir id='8LLBd'><q id='8LLBd'></q></dir></style></legend>

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

        有时使用&lt;BR/&gt;是不是很糟糕?

        时间:2023-08-01

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

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

                  <bdo id='akZ4U'></bdo><ul id='akZ4U'></ul>
                  <tfoot id='akZ4U'></tfoot>
                  本文介绍了有时使用&lt;BR/&gt;是不是很糟糕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  使用 <BR/> 标签有时是不是很糟糕?

                  Is it sometimes bad to use <BR/> tags?

                  我之所以这么问,是因为我的开发团队给我的第一个建议是:不要使用 <BR/> ;相反,使用样式.但为什么?使用 <BR/> 标签会产生负面影响吗?

                  I ask because some of the first advice my development team gave me was this: Don't use <BR/> ; instead, use styles. But why? Are there negative outcomes when using <BR/> tags?

                  推荐答案

                  不使用<br>的主要原因是不是语义.如果您希望两个项目位于不同的视觉块中,您可能希望它们位于不同的逻辑块中.

                  The main reason for not using <br> is that it's not semantic. If you want two items in different visual blocks, you probably want them in different logical blocks.

                  在大多数情况下,这意味着只使用不同的元素,例如 <p>Stuff</p><p>Other stuff</p>,然后使用 CSS 来分隔块正确退出.

                  In most cases this means just using different elements, for example <p>Stuff</p><p>Other stuff</p>, and then using CSS to space the blocks out properly.

                  在某些情况下 <br> 在语义上是有效的,即换行符是您发送的数据的部分的情况.这实际上仅限于 2 个用例 - 诗歌和邮寄地址.

                  There are cases where <br> is semantically valid, i.e. cases where the line break is part of the data you're sending. This is really only limited to 2 use cases - poetry and mailing addresses.

                  这篇关于有时使用&lt;BR/&gt;是不是很糟糕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在&lt;option&gt;中使用href链接标签 下一篇:如何在 Javascript 中获取当前格式化日期 dd/mm/yyyy 并将其附加到输入

                  相关文章

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

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

                        <bdo id='LoEYj'></bdo><ul id='LoEYj'></ul>