<legend id='PQDlR'><style id='PQDlR'><dir id='PQDlR'><q id='PQDlR'></q></dir></style></legend>
  • <tfoot id='PQDlR'></tfoot>

        • <bdo id='PQDlR'></bdo><ul id='PQDlR'></ul>
        <i id='PQDlR'><tr id='PQDlR'><dt id='PQDlR'><q id='PQDlR'><span id='PQDlR'><b id='PQDlR'><form id='PQDlR'><ins id='PQDlR'></ins><ul id='PQDlR'></ul><sub id='PQDlR'></sub></form><legend id='PQDlR'></legend><bdo id='PQDlR'><pre id='PQDlR'><center id='PQDlR'></center></pre></bdo></b><th id='PQDlR'></th></span></q></dt></tr></i><div id='PQDlR'><tfoot id='PQDlR'></tfoot><dl id='PQDlR'><fieldset id='PQDlR'></fieldset></dl></div>

        <small id='PQDlR'></small><noframes id='PQDlR'>

        具有固定包装器的引导网格 - 防止列堆叠

        Bootstrap grid with fixed wrapper - Prevent columns from stacking up(具有固定包装器的引导网格 - 防止列堆叠)
        <legend id='dHBsV'><style id='dHBsV'><dir id='dHBsV'><q id='dHBsV'></q></dir></style></legend>

        <small id='dHBsV'></small><noframes id='dHBsV'>

      1. <tfoot id='dHBsV'></tfoot>
          • <bdo id='dHBsV'></bdo><ul id='dHBsV'></ul>

            1. <i id='dHBsV'><tr id='dHBsV'><dt id='dHBsV'><q id='dHBsV'><span id='dHBsV'><b id='dHBsV'><form id='dHBsV'><ins id='dHBsV'></ins><ul id='dHBsV'></ul><sub id='dHBsV'></sub></form><legend id='dHBsV'></legend><bdo id='dHBsV'><pre id='dHBsV'><center id='dHBsV'></center></pre></bdo></b><th id='dHBsV'></th></span></q></dt></tr></i><div id='dHBsV'><tfoot id='dHBsV'></tfoot><dl id='dHBsV'><fieldset id='dHBsV'></fieldset></dl></div>

                <tbody id='dHBsV'></tbody>
                  本文介绍了具有固定包装器的引导网格 - 防止列堆叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  正如标题所说,我正在尝试使用带有固定包装器的 Bootstrap 3 网格系统.但是当我调整浏览器的大小时,即使包装器保持相同的大小,列也会堆积起来?

                  As the title says I'm trying to use Bootstrap 3 grid system with a fixed wrapper. But when I resize the Browser the columns stack up even if the wrapper stays the same size?

                  顺便说一句:我使用的是第 3 版,以便在移植网站后可以切换到响应式布局.(这是巨大的,我一个人,所以一步一步是唯一的选择......)

                  BTW: I'm using version 3 so that I can move to a responsive layout after I have ported the site. (Which is huge and I'm alone, so step by step is the only option ...)

                  <!DOCTYPE html>
                  <html>
                    <head>
                      <title>Bootstrap 101 Template</title>
                      <meta name="viewport" content="width=device-width, initial-scale=1.0">
                      <!-- Bootstrap -->
                      <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
                  
                      <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
                      <!--[if lt IE 9]>
                        <script src="../../assets/js/html5shiv.js"></script>
                        <script src="../../assets/js/respond.min.js"></script>
                      <![endif]-->
                  
                      <style>
                              /* Custom container */
                              .container-fixed {
                                margin: 0 auto;
                                max-width: 800px;
                                min-width: 800px;
                                width: 800px;
                                                    background-color:#C05659;
                              }
                              .container-fixed > hr {
                                margin: 30px 0;
                              }
                      </style>
                    </head>
                    <body>
                          <div class="container-fixed">
                              <div class="row">
                                <div class="col-md-4">.col-md-4</div>
                                <div class="col-md-4">.col-md-4</div>
                                <div class="col-md-4">.col-md-4</div>
                              </div>
                              <hr>
                          </div>
                  
                      <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
                      <script src="http://code.jquery.com/jquery.min.js"></script>
                      <!-- Include all compiled plugins (below), or include individual files as needed -->
                      <script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
                    </body>
                  </html>
                  

                  推荐答案

                  sm,md,lg等.. cols wrap/stack 响应式.使用 non-stacking col-xs-* 类...

                  The sm,md,lg,etc.. cols wrap/stack responsively. Use the non-stacking col-xs-* class...

                  <div class="container">
                    <div class="row">
                      <div class="col-xs-4">.col-4</div>
                      <div class="col-xs-4">.col-4</div>
                      <div class="col-xs-4">.col-4</div>
                    </div>
                  </div>
                  

                  演示:http://bootply.com/80085

                  Bootstrap 4,不再需要指定 xs..

                  <div class="container-fluid">
                    <div class="row">
                      <div class="col-4">.col-4</div>
                      <div class="col-4">.col-4</div>
                      <div class="col-4">.col-4</div>
                    </div>
                  </div>
                  

                  这篇关于具有固定包装器的引导网格 - 防止列堆叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Crop the image using JavaScript(使用 JavaScript 裁剪图像)
                  How do I take code from Codepen, and use it locally?(如何从 Codepen 获取代码并在本地使用?)
                  Overlay HTML5 canvas over image(在图像上覆盖 HTML5 画布)
                  How i quot;writequot; an icon in the context canvas?(我如何“写作上下文画布中的图标?)
                  webkit css resize doesn#39;t work with canvas as child?(webkit css resize 不适用于儿童画布?)
                  Implementing Delete and Edit operations in jqgrid(在 jqgrid 中实现删除和编辑操作)

                      <tbody id='t9aVA'></tbody>

                    • <i id='t9aVA'><tr id='t9aVA'><dt id='t9aVA'><q id='t9aVA'><span id='t9aVA'><b id='t9aVA'><form id='t9aVA'><ins id='t9aVA'></ins><ul id='t9aVA'></ul><sub id='t9aVA'></sub></form><legend id='t9aVA'></legend><bdo id='t9aVA'><pre id='t9aVA'><center id='t9aVA'></center></pre></bdo></b><th id='t9aVA'></th></span></q></dt></tr></i><div id='t9aVA'><tfoot id='t9aVA'></tfoot><dl id='t9aVA'><fieldset id='t9aVA'></fieldset></dl></div>

                      <tfoot id='t9aVA'></tfoot><legend id='t9aVA'><style id='t9aVA'><dir id='t9aVA'><q id='t9aVA'></q></dir></style></legend>
                        <bdo id='t9aVA'></bdo><ul id='t9aVA'></ul>

                        <small id='t9aVA'></small><noframes id='t9aVA'>