Left div>
;
Right
; overflow attribute
#layout {overflow:auto; zoom:1;}
Use :after (non-IE browser)
#layout:after{
display: block;
clear: both; content: "";
visibility:hidden; height: 0;
}
Note: Use :after required Note a few points, set the height to zero (height: 0;); content is required, but its value can be empty
For more css, don’t forget to clear the floating clear:both For related articles, please pay attention to the PHP Chinese website!