2015-10-09 74 views
0

我想居中,但我無法正確解決它。我在等你的想法。提前致謝。如何在行中居中(引導)

<div class="row"> 

    <div class="col-xs-6 col-md-3"> 
    <h3>Google Maps</h3> 
    <a href="#" class="thumbnail"> 
     <img alt="Google Maps" src="http://www.jontheboy.com/wp-content/uploads/2015/04/Google-maps-logo-180x180.png" style="height: 180px; width: 180px; display: block;"> 
    </a> 
    </div> 
    <div class="col-xs-6 col-md-3"> 
    <h3>Bootstrap</h3> 
    <a href="#" class="thumbnail"> 
     <img alt="Bootstrap" src="http://collectit.fr/uploads/ressources/3.png" style="height: 180px; width: 180px; display: block;"> 
    </a> 
    </div> 
    <div class="col-xs-6 col-md-3"> 
    <h3>JavaScript</h3> 
    <a href="#" class="thumbnail"> 
     <img alt="JavaScript" src="http://image.slidesharecdn.com/organizando-js-tablelessconf-120828084246-phpapp01/95/evento-front-end-sp-organizando-o-javascript-6-728.jpg?cb=1346143491" style="height: 180px; width: 180px; display: block;"> 
    </a> 
    </div> 
</div> 

回答

0

它適合我。我在這裏測試了它,http://www.bootply.com/pM4tcqfqhA。我所做的只是將它包裝在類「容器」的正確的父級div中。

+0

它不居中據我所知:)右邊的空間比左邊大。 –