-4

我想把整个句子分成几行。所以我在后面放了换行符

  • . 这显示警告。我怎样才能解决这个问题?

    <ul>
      <br />
      <li>Details of available candidates will be sent to you</li>
      <br />
      <li>Cost of Service is as per Vacancy Check with Dial4jobz for the same.</li>
    </ul>
    <br />
    <div id="Div8" style="display:none">Hot Resume</div>
    </th>
    
  • 4

    2 回答 2

    2

    No. Only list items may be children of a list.

    If you want space between each list item - use a margin (applied with CSS).

    li {
        margin-top: 1em;
    }
    

    If you want space between specific list items - reconsider your data structure. You might have a list of lists, or just a collection of lists.

    于 2012-08-17T09:05:36.297 回答
    0

    If you can't use a margin, you could add a break inside your list item, ie.

    <li>Details of available candidates will be sent to you<br /><br /></li>
    
    于 2012-08-17T09:07:50.770 回答