我正在嘗試集中一組流體縮略圖,但他們始終對齊左側而不是中心。居中縮略圖
這裏是一個說明該問題的jsfiddle:
http://jsfiddle.net/4040newb/bVa2Z/3/
你可能需要擴大輸出窗口中看到由一側上的縮略圖側和觀察問題
<div class="container-fluid">
<div class="row-fluid">
<ul class="thumbnails">
<li>
<a href="photos for nothing.jpg" rel="prettyPhoto[gallery1]" title="nothing">
<img class="thumbnail" src="blank photos/blankthumb.jpg" alt="nothing">
</a>
</li>
<li>
<a href="photos for nothing.jpg" rel="prettyPhoto[gallery1]" title="nothing">
<img class="thumbnail" src="blank photos/blankthumb.jpg" alt="nothing">
</a>
</li>
<li>
<a href="photos for nothing.jpg" rel="prettyPhoto[gallery1]" title="nothing">
<img class="thumbnail" src="blank photos/blankthumb.jpg" alt="nothing">
</a>
</li>
<li>
<a href="photos for nothing.jpg" rel="prettyPhoto[gallery1]" title="nothing">
<img class="thumbnail" src="blank photos/blankthumb.jpg" alt="nothing">
</a>
</li>
<li>
<a href="photos for nothing.jpg" rel="prettyPhoto[gallery1]" title="nothing">
<img class="thumbnail" src="blank photos/blankthumb.jpg" alt="nothing">
</a>
</li>
<li>
<a href="photos for nothing.jpg" rel="prettyPhoto[gallery1]" title="nothing">
<img class="thumbnail" src="blank photos/blankthumb.jpg" alt="nothing">
</a>
</li>
<li>
<a href="photos for nothing.jpg" rel="prettyPhoto[gallery1]" title="nothing">
<img class="thumbnail" src="blank photos/blankthumb.jpg" alt="nothing">
</a>
</li>
<li>
<a href="photos for nothing.jpg" rel="prettyPhoto[gallery1]" title="nothing">
<img class="thumbnail" src="blank photos/blankthumb.jpg" alt="nothing">
</a>
</li>
<li>
<a href="photos for nothing.jpg" rel="prettyPhoto[gallery1]" title="nothing">
<img class="thumbnail" src="blank photos/blankthumb.jpg" alt="nothing">
</a>
</li>
<li>
<a href="photos for nothing.jpg" rel="prettyPhoto[gallery1]" title="nothing">
<img class="thumbnail" src="blank photos/blankthumb.jpg" alt="nothing">
</a>
</li>
<li>
<a href="photos for nothing.jpg" rel="prettyPhoto[gallery1]" title="nothing">
<img class="thumbnail" src="blank photos/blankthumb.jpg" alt="nothing">
</a>
</li>
<li>
<a href="photos for nothing.jpg" rel="prettyPhoto[gallery1]" title="nothing">
<img class="thumbnail" src="blank photos/blankthumb.jpg" alt="nothing">
</a>
</li>
<li>
<a href="photos for nothing.jpg" rel="prettyPhoto[gallery1]" title="nothing">
<img class="thumbnail" src="blank photos/blankthumb.jpg" alt="nothing">
</a>
</li>
<li>
<a href="photos for nothing.jpg" rel="prettyPhoto[gallery1]" title="nothing">
<img class="thumbnail" src="blank photos/blankthumb.jpg" alt="nothing">
</a>
</li>
<li>
<a href="photos for nothing.jpg" rel="prettyPhoto[gallery1]" title="nothing">
<img class="thumbnail" src="blank photos/blankthumb.jpg" alt="nothing">
</a>
</li>
<li>
<a href="photos for nothing.jpg" rel="prettyPhoto[gallery1]" title="nothing">
<img class="thumbnail" src="blank photos/blankthumb.jpg" alt="nothing">
</a>
</li>
</ul>
</div>
</div>
流體容器(這是您使用的)意味着他們將在其演示靈活和適應它們在容器的寬度如果您想要有一個固定的容器和中心*它*然後縮略圖應該跟隨。 – ochi
不,我希望它適應大小,但問題是,當窗口不夠大而無法添加新行時,那裏的縮略圖不會居中。肯定有辦法讓它既流暢又集中。 – user2989343