即使我設置了height
和width
,番茄圖片也比其他人高。我敢肯定這件事情很簡單:爲什麼自舉列中的img行爲不起作用?
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="row">
<div class="col-md-4">
<a href="#"><img src="http://i1121.photobucket.com/albums/l514/sterzarino/lightning.jpg" class="img-responsive projects img-thumbnail" width="230" height="230"></a>
<div class="caption text-center">Weather App</div>
\t \t </div>
<div class="col-md-4">
<a href="#"><img src="http://i1121.photobucket.com/albums/l514/sterzarino/TomatoClock.jpg" class="img-responsive projects img-thumbnail" width="230" height="230"></a>
<div class="caption text-center">Weather App</div>
</div>
<div class="col-md-4">
<a href="#"><img src="http://i1121.photobucket.com/albums/l514/sterzarino/soup.jpg" class="img-responsive projects img-thumbnail" width="230" height="230"></a>
<div class="caption text-center">Recipe Book</div>
</div>
</div>
</div>
非常感謝,並感謝您修復我的標題。我看到你對寬高比的意思,因爲我增加了最大寬度,試圖使它們完全相同的尺寸,並重新調整,所以它們甚至不是。我最終在CSS和max-height中使用了高度和寬度,並且它似乎也可以工作,只是延伸。如果在使用bootstrap的css中高度超過最大高度的優勢,請告訴我。 –