http://jsfiddle.net/sV36r/兩個IMG不去下一行
<div id="a"><div style="max-width: 350px;"><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/5/5b/Ultraviolet_image_of_the_Cygnus_Loop_Nebula_crop.jpg/691px-Ultraviolet_image_of_the_Cygnus_Loop_Nebula_crop.jpg" width="100%" /></div></div>
<div id="b"><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/5/5b/Ultraviolet_image_of_the_Cygnus_Loop_Nebula_crop.jpg/691px-Ultraviolet_image_of_the_Cygnus_Loop_Nebula_crop.jpg" style="width: 50px; height: 50px" /></div>
#a
{
float: left;
}
#b
{
float: right;
}
這裏有兩個圖像,飄然左右。當我縮小寬度時,右邊在左邊 - 我不需要它。相反,左圖像應該縮小。
嘿@john Smith我在下面提交了這個答案,看看http://jsfiddle.net/UuwnC/ – zee