這似乎適用於ie8,Chrome和Firefox。一切都應該在同一行,但在ie7最後一個div由於某種原因似乎不適合,並下降到下一行。有沒有一種簡單的方法來使它與ie7一起工作?ie7多個浮動div,百分比寬度等於100%內部容器div
<div style="width: 95%">
<div style="width: 25%; background-color: blue; float: left;">test1</div>
<div style="width: 25%; background-color: green;float: left;">test2</div>
<div style="width: 25%; background-color: red;float: left;">test3</div>
<div style="width: 25%; background-color: yellow;float: left;">test4</div>
</div>
你對這些div有利潤嗎? – prodigitalson 2010-09-01 04:09:53
問題仍然存在與所有邊距和填充設置爲0px – 2010-09-01 04:14:47