如何對齊圖像和兩個跨度的一行對齊圖片和評論的迴應式網站
<img src="../images/profile/profile.png" class="img" />
<span class="name">Firt Name</span>
<span class="comment">
This is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently this is end of count.
</span>
小提琴http://fiddle.jshell.net/m3qyhoab/
我改變形象,跨度顯示屬性來阻止等等。但仍然沒有工作
您想如何對齊?在同一行中的所有3個元素,對齊左,右,居中....? – exoddus
是什麼? http://fiddle.jshell.net/m3qyhoab/12/ – sinisake
將「display:inline-block」添加到包裝中,將「display:block;」添加到包裝中的所有浮動元素。同時,您還使兩個span元素具有100%的寬度,這不允許他們並排浮動嘗試刪除寬度 –