css防止浮动元素父元素高度塌陷的三个方法

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