我有簡單的HTML和CSS如下。我注意到.outside框和.inside框之間的底部邊距崩潰。 我不明白爲什麼我看不到背景圖像時底部邊距崩潰,背景圖像應該沒有關於邊距。 謝謝:)爲什麼利潤率崩潰影響背景圖像?
<div class="outside">
<div class="inside"> content </div>
</div>
.outside {background:url(http://blurfun.com/temp/images/bottom.png) left bottom no-repeat; padding-top:1px;}
.inside { background:#00CCFF; margin:0 0 10px 0; padding:0 0 20px 0;}
使用'背景image'代替'background' – jjj 2013-02-21 01:44:00