我有一个div在另一个上面.顶部div有margin-bottom: 10px,底部div有margin-top: 10px,但两个div之间只有10px的空间.
实例:http://jsbin.com/efugok/1/edit
使用Css的Html:
<div style="margin-bottom:10px; background: #e6e6e6;" id="one">one</div>
<div style="margin-top:10px; background: #ccc" id="two">two</div>
Run Code Online (Sandbox Code Playgroud)
渲染:

| 归档时间: |
|
| 查看次数: |
1112 次 |
| 最近记录: |