4
我以前的問題是在這裏找到答案:Two floating divs side by side, same height兩個浮動的div並排,相同的高度(跟進)
我的問題:有人提供這裏一個例子:http://jsfiddle.net/s7ufg/18/
如何刪除下面的額外空間圖片?
我以前的問題是在這裏找到答案:Two floating divs side by side, same height兩個浮動的div並排,相同的高度(跟進)
我的問題:有人提供這裏一個例子:http://jsfiddle.net/s7ufg/18/
如何刪除下面的額外空間圖片?
添加垂直對齊:頂你的IMG規則:
img {
max-width: 100%;
height: auto;
width: auto;
vertical-align:top;
}
display:block;
到圖像解決它
img {
display:block;
max-width: 100%;
height: auto;
width: auto;
}
你是最棒的!謝謝。 – user1040259
在我的情況下,vertical-align:top;效果最好。 – user1040259