Bootstrap 4从左向右切换展开

时间:2017-08-14 21:34:10

标签: twitter-bootstrap bootstrap-4

我一直在查看bootstrap 4文档,因为我想切换一个div来缩小并从左向右扩展但我只找到了一个切换,切换扩展到顶部。

这是我发现的:

<div class="pos-f-t">
  <div class="collapse" id="navbarToggleExternalContent">
    <div class="bg-dark p-4">
      <h4 class="text-white">Collapsed content</h4>
      <span class="text-muted">Toggleable via the navbar brand.</span>
    </div>
  </div>
  <nav class="navbar navbar-dark bg-dark">
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
  </nav>
</div>

如何点击按钮从左到右展开?

0 个答案:

没有答案