super胡
#a1{
width:200px;
height:200px;
border:1px solid red;
margin-bottom:20px;
}
#a2{
margin-top:20px;
width:100px;
height:100px;
display:inline-block;/*或者绝对定位(position:absolute)或者是浮动元素*/
border:1px solid black;
}
查看更多关于如何解决外边距叠加的问题?_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did109785