0
我想垂直對齊引導縮略圖內的圖像。謝謝你的幫助!引導3垂直對齊圖像縮略圖
<div class="pull-left" style="margin-right: 10px;">
<div class="thumbnail">
<div class="caption" style="background-color: #ccc;">
<a style="color: black;" href="/product/[email protected]">@product.UPC12</a>
</div>
<div style="width: 150px; height: 150px; "> <!-- Center this -->
<a style="" href="#" onclick="showProduct('@product.Id')">
<img class="" src="~/Asset.ashx?id=1253&type=small" />
</a>
</div>
<div style="padding-left: 5px;" class="checkbox">
<label>
@Html.Partial("~/Views/Shared/_ProductImageCheckboxPartial.cshtml", new Logix3.TDC.Exchange.Web.Models.ProductImageModel() { Product = product, Image = defaultImage })
</label>
</div>
</div>
</div>
[http://stackoverflow.com/questions/23477909/vertically-center-constrained-image-in-bootstrap-thumbnail](http :/ /問題/ 23434909 /vertically-center-constrained-image-in-bootstrap-thumbnail) 檢查此答案。這會幫助你 – ujjwal 2014-09-30 18:35:48