2016-06-28 60 views
0

我想從3個單選按鈕創建一個面板頁腳建設。如何使用3個等距按鈕構建引導程序面板頁腳?

現在看起來是這樣的:

my panel

我想要的按鈕來伸展,並填補了腳註。

這是我的代碼:

<div class="panel-heading"> 
         <strong>Title</strong> 
        </div> 
        <div class="panel-body"> 
         <div class="media"> 
          Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. 
         </div> 
        </div> 
        <div class="panel-footer"> 
         <div class="btn-group btn-block" data-toggle="buttons"> 
          <label class="btn btn-primary"> 
           <input type="radio" name="options" id="option1" style="width:30%"> Option 1 
          </label> 
          <label class="btn btn-primary"> 
           <input type="radio" name="options" id="option2" style="width:30%"> Option 2 
          </label> 
          <label class="btn btn-primary"> 
           <input type="radio" name="options" id="option3" style="width:30%"> Option 3 
          </label> 
         </div> 
        </div> 

什麼想法? 謝謝。

回答

0

由於您正在使用引導,請嘗試在您的代碼中包含網格。

添加類= 「類=」 COL-SM-4 COL-XL-4 COL-MD-4" 中的按鈕標籤,使寬度= 「100%」 的所有三個按鈕。

對於約格更多參考: http://v4-alpha.getbootstrap.com/layout/grid/

0

使用btn-group-justified

<div class="panel-footer"> 
    <div class="btn-group-justified btn-block" data-toggle="buttons">