<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
我有 2 个 col-md-6 的 div 容器。第一个包含页面的一半区域,socond 包含 2 个 div。问题是第二个容器区域不等于第一个 div。
<div class="container-fluid">
<div class="row">
<div class="col-md-6" ><img src="http://ste.india.com/sites/default/files/2015/12/05/438674-5-12-2015-show-gh8-o.jpg" class="img-responsive"></div>
<div class="col-md-6" >
<div col-md-12>
<img src="http://ste.india.com/sites/default/files/styles/zm_700x400/public/2015/12/06/438831-dpz6dcab-14s.jpg" class="img-responsive"></div>
<div class="col-md-12" >
<img src="http://ste.india.com/sites/default/files/styles/zm_700x400/public/2015/12/06/438831-dpz6dcab-14s.jpg" class="img-responsive"></div>
</div>
最佳答案
参见示例 fiddle
CSS:
.group{width:100%; display:table;}
.one{width:50%; background:#999; display:table-cell; }
.two{width:50%; background:#ff0000; display:table-cell;}
HTML:
<div class="group">
<div class="one">One</div>
<div class="two">Two</div>
</div>
关于jquery - Bootstrap 中的等高问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34125913/