css防止浮動元素父元素高度塌陷的三個方法

<style>   .div1{    background-color:yellow;        width:330px;   }   .div2{    background-color:red;    height:300px;    width:300px;    float:left;   } </style> </head> <body>  <div class="div1">  
相關文章
相關標籤/搜索