Bootstrap div清除修复

时间:2016-08-29 10:56:22

标签: twitter-bootstrap

嗨,我有3个div,我想要div" aaaa"起来但我不能这样。我使用clearfix做了我的代码;



<div class="container">
    <div class="row">
       <div class="col-md-3 br">s</div>
       <div class="clearfix"> </div>
       <div class="col-md-3 br">s</div>
       <div class="col-md-9 br" style="height:700px">aaa</div>
    </div>
</div>
&#13;
&#13;
&#13;

我的形象; enter image description here

2 个答案:

答案 0 :(得分:0)

试试这个,希望它有效

<div class="container">
  <div class="row">
    <div class="col-md-3 br">
      <div class="row">
        <div class="col-md-12">s</div>
        <div class="col-md-12">s</div>
      </div>
    </div>

    <div class="col-md-9 br" style="height:700px">aaa</div>
  </div>
</div>

答案 1 :(得分:0)

也许:

<div class="container">
    <div class="row">
      
      <div style="float: left; border: 1px solid #f00;">
        <div>s</div>
        <div>s</div>
      </div>
       
      <div>
        <div>aaa</div>
      </div>       
      
    </div>
</div>