上外邊距與上外邊距相遇問題
<style type="text/css">
.box{background:yellow;height: 250px;border: 1px solid grey;margin-top: 30px}
.box1{background: red;height: 70px;margin-top: 80px;}
.box2{background: blue;height: 50px;margin-top: 40px}
</style>
</head>
<body>
<div class="box">
<div class="box1"></div>
<div class="box2"></div>
</div>
問題:上外邊距與上外邊距相遇是指那種情況的,不是很明白視頻里面應用于哪種類型。求大神們用盒子模型講解一下。是哪個塊(盒子)與哪個塊(盒子)的上外邊距相遇了。
2015-08-20
是因為瀏覽器的問題導致外邊距重疊 你百度一下解決方法 有很多