html - 如何在 bootstrap 中放置一个容器(两行)和两个容器(在不同的两行)?

标签 html css twitter-bootstrap bootstrap-modal

如何在 bootstrap 中放置一个容器(两行)和两个容器(在不同的两行)? enter image description here

我想要这样排列的容器

最佳答案

您可以使用网格来做这些事情。 你能说明它应该是什么样子吗?(我可以帮助你更多)

编辑: 为此,您实际上只需要一行两列。

它看起来像这样:

    <div class="row">

      <div class="col-md-8">  <!-- 8 is the width of the left side -->

        You content here

      </div>

     <div class="col-md-4">  <!-- 4 is the width of the right side -->

        Your content here

      </div>

    </div>

如果你需要让那些列里面的内容也是一个网格,那么它会有点不同:

   <div class="row">

      <div class="col-md-8">  <!-- 8 is the width of the left side -->

       <div class="row">
          <div class="col-md-12"></div>
          <!-- You just add your columns here -->
       </div>

       <div class="row">
          <div class="col-md-12"></div>
          <!-- You just add your columns here -->
       </div>

      </div>

     <div class="col-md-4">  <!-- 4 is the width of the right side -->

        <div class="row">
          <div class="col-md-12"></div>
          <!-- You just add your columns here -->
       </div>

       <div class="row">
          <div class="col-md-12"></div>
          <!-- You just add your columns here -->
       </div>

      </div>

    </div>

关于html - 如何在 bootstrap 中放置一个容器(两行)和两个容器(在不同的两行)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42172634/

相关文章:

html - Bootstrap 响应两列问题

javascript - 使用JS移动div内的div

html - 使用自定义 css 将 styleClass 应用于 div

javascript - 调整滚动条

javascript - 在可调整大小的导航栏上显示/隐藏按钮

html - 如何将 Bootstrap 开关从 767 更改为移动设备? 768?

c# - 如何判断一个 html 字符串是否会在浏览器中显示为空? (C#/正则表达式?)

javascript - 无法获取 Firefox 的 html 元素的高度和宽度

CSS 列可见性 :collapse does not work on Chrome

javascript - Jquery隐藏具有特定类名但不符合特定条件的元素