我寫的答案正確嗎?為什么用clear和overflow的清除浮動效果不一樣,
body{ margin:0; padding:0; font-size:30px; font-weight:bold}
div{ text-align:center; line-height:50px}
.top{ height:100px;background:#9CF}
.head,.main{ width:960px; margin:0 auto;}
.head{ height:100px; background:#F90}
.left{ width:220px; height:600px; background:#ccc; float:left;}
.right{ width:740px; height:600px;background:#FCC; float:right}
.r_sub_left{ width:540px; height:600px; background:#9C3; float:left}
.r_sub_right{ width:200px; height:600px; background:#9FC; float:right;}
.footer{ height:50px; background:#9F9; clear:both; }
2016-03-20
這是在哪章節講的?我怎么沒印象
2016-03-11
http://www.educity.cn/wenda/117875.html?看這里
2016-03-11
clear:both是隔墻法 一般是用在大盒子和大盒子之間的,需要增加一個空盒子 div標簽聯合使用;用的次數少; 平常的就用overflow就好 ?方便
2016-03-11
main的高度沒有設置吧,我覺得
2016-03-11
對吧 。overflow不是溢出處理么?