引导表中的固定内容

时间:2018-10-21 17:12:27

标签: html css bootstrap-4

如何在引导程序中修复表中的内容?我的代码:

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<div class="accounts">
  <div class="table-responsive">
    <table class="table">
      <tr>
        <th>Аккауты ВК</th>
        <th>Количество</th>
        <th>Цена</th>
        <th></th>
      </tr>
      <tr>
        <td>
          <div class="icon float-left mr-2">
            <i class="fab fa-vk"></i>
          </div>
          <p>
            Аккаунты Instagram | Зарегистрированы с MIX ip.
          </p>
        </td>
        <td>
          1230 шт.
        </td>
        <td>
          <del class="text-danger">950 руб.</del> 920 руб. <span class="text-muted">/ 1 шт.</span>
        </td>
        <td class="text-right">
          <a href="" class="w-100 btn btn-success btn-sm">
            <i class="fas fa-shopping-cart"></i> Купить
          </a>
        </td>
      </tr>
    </table>
  </div>
</div>

我有响应表,但是当我在手机上看到该表时,该表的文本很小,在下一行会中断。如何在表格中固定内容?而且只能在手机上滚动?

0 个答案:

没有答案