【问题标题】:I've nested a ul in a ul but get an error. I've searched here but the solutions don't seem to apply [duplicate]我在 ul 中嵌套了一个 ul 但出现错误。我在这里搜索过,但解决方案似乎并不适用[重复]
【发布时间】:2018-06-11 07:19:08
【问题描述】:

这是错误:在此上下文中元素 ul 不允许作为元素 ul 的子级。 (抑制来自该子树的更多错误。)

这里是html:

 <tr>     
 <td> Incorporated Business Accounts - additional requirements:

 <ul>

 <li> Business name and address  </li>
 <li> Nature of business and date of incorporation </li>
 <li> BIN number</li>
 <li> Certificate of Incorporation</li>
 <li> Names of company directors</li>
 <li> Names of directors </li>
 <li> Proof of signing authority </li>
        <ul>
        <li> Ltd Companies:  Memorandum and Articles of Incorporation/Bylaws </li>
        <li> Registered Societies:  Constitution and Bylaws or minutes</li>
        <li> Strata Corporations: Bylaws or minutes</li>
        </ul>
 <li> Photo ID for all signers: if more than 3 signers, must ID at least 3 of those persons</li>
 </ul>
 </td></tr>
 </tbody>
 </table>

【问题讨论】:

    标签: html


    【解决方案1】:

    你需要像这样嵌套在&lt;li&gt;标签下:

    <ul>
        <li>Item 1</li>
        <li>Item 2
            <ul>
                <li>Nested item 1</li>
                <li>Nested item 2</li>
            </ul>
        </li>
    </ul>
    

    【讨论】:

      【解决方案2】:

      Ul 应该在 li 内。检查以下

      ....
      <li> Proof of signing authority
          <ul>
          <li> Ltd Companies:  Memorandum and Articles of Incorporation/Bylaws </li>
          <li> Registered Societies:  Constitution and Bylaws or minutes</li>
          <li> Strata Corporations: Bylaws or minutes</li>
          </ul>
      </li>
      <li> Photo ID for all signers: if more than 3 signers, must ID at least 3 of those persons</li>
       ....
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-11-14
        • 2015-01-06
        • 2022-10-15
        • 1970-01-01
        • 2022-01-25
        • 1970-01-01
        • 2021-03-16
        • 2020-07-13
        相关资源
        最近更新 更多