這裏是我的示例輸出:縮略圖自舉不垂直對齊
這裏是我的html
代碼就可以了:
<div class="products">
<ul class="thumbnails">'
<li>
<div>'.$item->ASIN.'</div>
<div><img src="'.$item->SmallImage->URL.'" alt=""></div>
<div>'.$item->ItemAttributes->Title.'</div>
<div>'.$item->ItemAttributes->ProductGroup.'</div>
</li>
</ul>
這是我的css
代碼:
.thumbnails {
text-align: center;
}
.thumbnails li {
width: 150px;
height: 250px;
background: red;
float: none !important; /* to overwrite the default property on the bootstrap stylesheet */
display: inline-block;
*display: inline; /* ie7 support */
zoom: 1;
}
我注意到它已經水平對齊了,我的問題是垂直對齊它。我該怎麼辦?請幫忙謝謝!