我有一點點複雜的表看起來像這樣如何使用bootstrap將表單元格內容與圖像垂直對齊?
<tr class='row-eq-height'>
<td><img/><div with text></td>
<td><img/><div with text></td>
<td><img/><div with text></td>
</tr>
但圖像具有不同的尺寸,所以我加入max-width: 300px
給他們。 而現在它看起來像
image | image
text | different text
some space | different space
所以我要堅持我的div與文字的底部。我已經嘗試了垂直對齊,但根本沒有幫助。 最後表看起來應該
image | image
some space | different space
text | different text
的jsfiddle example
我試圖使用你的風格,但它不會移動我的div到底部 – desu
你可以創建你的代碼的小提琴。 –
https://jsfiddle.net/4wnrq0kq/ – desu