2017-08-31 67 views
0

我想在引導選項卡中插入2列。選項卡的引導代碼取自here。那麼,我怎麼能把2列放在標籤「家」?在引導選項卡中插入列

我想:

<div class="tab-content col-sm-6"> 
    <div role="tabpanel" class="tab-pane active col-sm-6" style="width: 200px" id="home"> 
       Bla bla bla Bla bla bla Bla bla bla Bla bla bla 
     <div class="row"> 
      <div class="col-sm-6">Column 2</div> 
     </div> 
    </div> 
    <!-- The other tabs (Profile, Messages, Settings) --> 
</div> 

回答

4

內提供同樣的row

兩兩列
<div class="tab-content"> 
    <div role="tabpanel" class="tab-pane active" id="home"> 
     <div class="row"> 
      <div class="col-lg-6">Column 1</div> 
      <div class="col-lg-6">Column 2</div> 
     </div> 
    </div> 

    ... other tabs 
</div 
0

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet"/> 
 
<div class="container"> 
 
\t <div class="row"> 
 
     <div class="col tab-content ">HOME </div> 
 
     <div class="col">COLUMN 2</div> 
 
    </div> 
 
</div> 
 
<br>

看吧:https://v4-alpha.getbootstrap.com/examples/grid/