为什么这个代码去掉clear后footer还是受浮动影响?
#mainbody{width:100%;background:#123;overflow:hidden;}
#lside{width:800px;height:400px;background:#000;float:left;}
#rside{width:140px;height:600px;background:#789;float:right}
#footer{background:#bbc;clear:both;}
#mainbody{width:100%;background:#123;overflow:hidden;}
#lside{width:800px;height:400px;background:#000;float:left;}
#rside{width:140px;height:600px;background:#789;float:right}
#footer{background:#bbc;clear:both;}
2016-03-10
举报