1
我得到了一個小引導問題。 我打印具有角(納克重複)幾個元件和容器調節其高度的圖像的高度..如何在同一高度上分配一行中的元素?
代碼:
<div class="row text-center">
<div class="col-lg-3 col-md-12 col-sm-12" ng-repeat="recipe in purchasedRecipes">
<a href="{{recipe.PdfUrl}}" target="blank">
<div class="thumbnail">
<img src="{{recipe.ImgUrl}}" alt=""/>
<div class="caption">
<h3>{{recipe.RecipeName}}</h3>
</div>
</div>
</a>
</div>
</div>
寬度容易與分配bootstrap(class="col-lg-3 col-md-12 col-sm-12"
)我如何分配一個固定的響應高度,以便我的食譜是同一行大小的行?
感謝您的幫助:)
顯示:彎曲或顯示:表很容易做到這一點。 Bootsrap有一個可以使用的flex版本:https://v4-alpha.getbootstrap.com/utilities/flexbox/鏈接庫https://v4-alpha.getbootstrap.com/dist/css/bootstrap.min.css並在容器上添加(flex)類。 - 你的例子太短了,不能顯示你的問題,否則我會複製/粘貼來做一個例子 –