html之margin 重疊現象

兩個普通的div在都設置了margin以後,它們之間的距離不會疊加。只會是二者中邊距最大那個數值,以下:html <style>spa #father{ width:300px; height:300px; margin-right:50px; background:#3F6; } #child1{ height:100px; margin-bottom:50px; background-colo
相關文章
相關標籤/搜索