css中外邊距

1.內部元素設置margin等,父元素高度不能適應 1 .classA { 2 height: 200px; 3 background-color: cornflowerblue; 4 overflow: hidden; /*解決高度不能適應*/ 5 } 6 .classB { 7 width: 1000px; 8 height: 100
相關文章
相關標籤/搜索