2013-12-11 38 views
1

我如何重構這段代碼到Rails引導與4列格:重組代碼RailsBootstrap

<div ng-show="chooseNeighborhoodsVis"> 
    <div ng-repeat="hood in neighborhoods"> 
     <input type="checkbox" name="user[neighborhood_ids][]" 
      value="{{ hood.id }}" ng-click="countHoods(hood.name)">{{ hood.name }} 
    </div> 
</div> 

回答

2

如果你正在使用Twitter的引導那麼這笏你可以做。

<div class="row"> 
    <div class="col-xs-6 col-md-3">Column 1</div> 
    <div class="col-xs-6 col-md-3"> 

    <!-- Your Code Goes Here --> 

    </div> 
    <div class="col-xs-6 col-md-3">Column 3</div> 
    <div class="col-xs-6 col-md-3">Column 4</div> 
</div>