說,我有一個DIV 2 DIV這樣HTML DIV例如浮動背景問題
<div style="width: 300px; backround-color: #000000;">
<div style="height: 300px; width: 150px; float: left; background-color: #00ff00; color: #ffffff;">This is left</div>
<div style="float: right; width: 150px; background-color: #ff0000; color: ##ffffff;">This is right</div>
</div>
現在我的問題是,爲什麼我看不到我的背景黑色低於參考,如果綠格的高度爲300個像素。
Chromium 17中的No-repro,在Ubuntu 11.04上運行:http://jsfiddle.net/davidThomas/K9Qye/1/(編輯爲更新鏈接並糾正Brian Hoover發現的拼寫錯誤,我[最初錯過](http://jsfiddle.net/davidThomas/K9Qye)。) – 2012-03-25 14:21:37