我正在嘗試使用HTML/CSS在3個圖像的一行下對齊我的文本。正如 一樣,我刪除了我的評論,它垂直對齊一切。嘗試使用HTML/CSS對齊內聯圖像下的文本
<div class="inline">
<img class="rel" src="http://imgur.com/a/n2skT.png" alt="icon" />
<!-- <p> This is a test</p> -->
<img class="rel" src="http://imgur.com/a/n2skT.png" alt="icon" />
<!-- <p> This is a test</p> -->
<img class="rel" src="http://imgur.com/a/n2skT.png" alt="icon" />
<!-- <p> This is a test</p> -->
</div>
見我的例子https://jsfiddle.net/gvrr25bk/1/
提前感謝!
伊萬
'
'默認爲塊級元素,因此總是從新行開始。 – HiDeo