2015-02-09 93 views
0

這是我的代碼:引導縮略圖填充

@for (int j = 0; j < 10; j++) 
        { 
         <div class="col-lg-2 col-md-3 col-sm-4 col-xs-12"> 
          <div class="thumbnail"> 
           <img src="http://placehold.it/800x500" alt=""> 
           <div class=""> 
            <h3>Feature Label</h3> 
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p> 
            <p> 
             <a href="#" class="btn btn-primary">Buy Now!</a> <a href="#" class="btn btn-default">More Info</a> 
            </p> 
           </div> 
          </div> 
         </div> 
        } 

我如何能減少各項目之間的差額(檢查附件請)

感謝

enter image description here

回答

1
.col-lg-2.col-md-3.col-sm-4.col-xs-12 
{ 
    padding: 0 your desired padding/2; 
} 

實際,它是填充。不是保證金。

這裏是bootply的例子: - http://www.bootply.com/4yqAuLl9tM