Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html Bootstrap3.2:如何使另一个div中包含文本的3列具有相同的高度?_Html_Css_Twitter Bootstrap_Twitter Bootstrap 3 - Fatal编程技术网

Html Bootstrap3.2:如何使另一个div中包含文本的3列具有相同的高度?

Html Bootstrap3.2:如何使另一个div中包含文本的3列具有相同的高度?,html,css,twitter-bootstrap,twitter-bootstrap-3,Html,Css,Twitter Bootstrap,Twitter Bootstrap 3,使用Bootstrap3.2,我的网站有一部分有三个div(.col-lg-3 box),其中包含不同数量的文本。我希望它们都扩展到包含div的底部(.row)。我正在使用的CSS文件的链接如下: 我在Stack Exchange上看到的关于这个一般问题(容器中的相同高度div)的答案要么没有使用引导,要么语法已经过时。如果你能把我和一个完全符合我的SxE问题联系起来,我很乐意接受否决票,以换取一个答案 <div class="container-fluid join"> &l

使用Bootstrap3.2,我的网站有一部分有三个div(
.col-lg-3 box
),其中包含不同数量的文本。我希望它们都扩展到包含div的底部(
.row
)。我正在使用的CSS文件的链接如下:

我在Stack Exchange上看到的关于这个一般问题(容器中的相同高度div)的答案要么没有使用引导,要么语法已经过时。如果你能把我和一个完全符合我的SxE问题联系起来,我很乐意接受否决票,以换取一个答案

 <div class="container-fluid join">
  <h2 class="text-center white-heading" id="join-ita"><strong>Join ITA</strong></h2>
  <!-- <hr class="line-black"> -->
  <div class="row">

    <div class="col-lg-3 box">
        <div>
          <h3 class="text-center blue-heading">Newcomers Begin Here</h3>
        </div>
    <p>You will immediately earn 75% of paid commission, payable to you within 2 weeks of receipt. Upon registering, you immediately receive your own <span class="emphasis-blue">GaZoom</span> personalized website, with product and software training as well as mentoring. You will have at your fingertips all the tools necessary to immediately begin your business in the travel industry.</p>
    <button type="button" class="center-block btn btn-success btn-lg">JOIN NOW</button>
    </div>

    <div class="col-lg-3 box">
        <div>
          <h3 class="text-center blue-heading">Experienced Part-Time Agents</h3>
        </div>
      <p>Immediately earn 80% of paid commissions paid within 2 weeks of receipt. Enjoy your business at your pace with the <span class="emphasis-blue">GaZoom</span> family of products and services. Upon registering you will immediately receive your personalized website with our diverse and unique travel opportunities for your clients at your fingertips. A 24 hour assist program is available for you and your clients. You'll be eligible to participate in our corporate and leisure lead generation program. No monthly minimum requirements.</p>
      <button type="button" class="center-block btn btn-warning btn-lg">JOIN NOW</button>
    </div>

    <div class="col-lg-3 box">
          <div>
            <h3 class="text-center blue-heading">Experienced Full-Time Agents</h3>
          </div>
      <p>You're eligible to receive one of the highest paid commission levels in the industry: 85%, which is payable within 2 weeks of receipt when you maintain monthly bookings. Bring your clients and enjoy one of the industry's most dynamic and unique inventory and booking sites. Be confident that you and your book of business is protected and can be serviced with our 24 hour assist program. We can assist in growing your business by offering you a lead generation program for corporate travelers as well as leisure travelers.</p>
      <button type="button" class="center-block btn btn-red btn-lg">JOIN NOW</button>
    </div>
  </div>
</div>

加入ITA
新来者从这里开始
您将立即获得75%的已支付佣金,并在收到后2周内支付给您。注册后,您将立即收到您自己的GaZoom个性化网站,并提供产品和软件培训以及指导。您将拥有所有必要的工具,可以立即在旅游行业开展业务

现在加入 有经验的兼职代理 收到后2周内立即赚取80%的已支付佣金。通过GaZoom系列产品和服务,以您的速度享受您的业务。注册后,您将立即收到您的个性化网站,为您的客户提供各种独特的旅游机会,触手可及。为您和您的客户提供24小时协助计划。您将有资格参加我们的企业和休闲潜在客户开发计划。没有每月最低要求

现在加入 经验丰富的全职代理人 您有资格获得业内最高的佣金水平之一:85%,在您维持每月预订时,在收到佣金后2周内支付。带上您的客户,享受业界最具活力和独特的库存和预订网站之一。请确信您和您的业务手册受到保护,并且可以通过我们的24小时协助计划进行服务。我们可以为您提供商务旅行者和休闲旅行者的潜在客户开发计划,帮助您发展业务

现在加入
创建等高列的方法有很多种。除非您使用的是实际的表,否则这些表都是过时的。Flexbox适用于现代浏览器。您可以使用jQuery。您可以使用大量的填充底部和负边距底部。您可以在.row上使用display:table,在列上使用display:table单元格(删除浮动后)

但是,所有CSS方法都只提供以下内容:

参考:

这是因为在引导网格中没有边距作为边沟,而是填充

但是如果你想要一些像这样的盒子呢?

你不能,因为两者之间没有边际。您可以使用边框和:before/:after,但是如果您有一个背景图像作为页面的背景呢

在过去的几年中,我使用了jQuery方法。这是我正在使用的最新脚本,非常流畅:

下面是如何使用它(在jQuery之后加载它之后):

这可以是列的一个子类,这就是允许您在这个答案中生成第二个数字的原因

下面是一个带有一些虚假内容和刷新底部按钮的示例。你会注意到,等高是有响应的,它们是每个可视行的,所以它不是最高的,而是最近的兄弟姐妹中最高的。因此,从本质上讲,它为您提供了预期的结果:

演示:

$(window).load(function() {
    $('.the-class-I-want-to-be-equal').responsiveEqualHeightGrid();
});