下面的文字 table

Text below table

文本不会进入 table。是不是div的问题?我没有找到这个问题的答案。

这是 CSS 和 HTML 代码:

.subtype {
  border: 2px solid #c6c6c6;
  background-color: white;
  width: 250px;
  height: 30px;
  text-align: top;
}

ol {
  padding: 0;
  list-style-type: none;
  font-size: 15px;
  height: 20px;
  line-height: 200%;
}
<div class="content">
  <div class="submit">What would you like to submit?</br>
    </br>
    <ul>
      <li>Submission Type *</li>
    </ul>
    </br>
    <div class="subtype">
      <ol>
        <div class="arrows">
          <i class="icon-arrow-combo"></i>
        </div>
        <li><a href="#">Brand and Marketing</a>
          <ul>
            <li><a href="#">Sample Submit2</a></li>
            <li><a href="#">Sample Submit3</a></li>
            <li><a href="#">Sample Submit4</a></li>
          </ul>
        </li>

      </ol>

    </div>
    <ul>
      </br>
      <li>Choose one of the following options *</li>
    </ul>
  </div>
</div>

您应该删除这些元素上的 height: 30px,如果您希望文本适合 table,可以设置 height: auto

.subtype {
  border: 2px solid #c6c6c6;
  background-color: white;
  width: 250px;
  height: auto;
  text-align: top;
}

ol {
  padding: 0;
  list-style-type: none;
  font-size: 15px;
  height: auto;
  line-height: 200%;
}
<div class="subtype">
  <ol>
    <div class="arrows">
      <i class="icon-arrow-combo"></i>
    </div>
    <li><a href="#">Brand and Marketing</a>
      <ul>
        <li><a href="#">Sample Submit2</a></li>
        <li><a href="#">Sample Submit3</a></li>
        <li><a href="#">Sample Submit4</a></li>
      </ul>
    </li>
  </ol>
</div>

试试这个:

.subtype {
    min-height: 30px; /*/height change to min-height/*/
    //more code...
}

ol {
    height: 20px; /*/remove this/*/
    //more code...
}

.subtype {
  border: 2px solid #c6c6c6;
  background-color: white;
  width: 250px;
  min-height: 30px;
  text-align: top;
}

ol {
  padding: 0;
  list-style-type: none;
  font-size: 15px;
  line-height: 200%;
}
<div class="subtype">
  <ol>
    <div class="arrows">
      <i class="icon-arrow-combo"></i>
    </div>
    <li><a href="#">Brand and Marketing</a>
      <ul>
        <li><a href="#">Sample Submit2</a></li>
        <li><a href="#">Sample Submit3</a></li>
        <li><a href="#">Sample Submit4</a></li>
      </ul>
    </li>
  </ol>
</div>