我有简单的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