為什么結果.r_sub_right和.footer會出現在一行,我看不出代碼哪里有錯誤,用其他編輯器結果還是有錯誤
.top{ height:100px;background:#9CF}
.head,.main{ width:960px; 【任務1】margin:0 auto;}
.head{ height:100px; background:#F90}
.left{ width:220px; height:600px; background:#ccc;float:left; 【任務2】}
.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; 【任務3】float:right;}
.footer{ height:50px; background:#9F9; 【任務4 margin:600px 0 0 0;}
2016-11-08
footer沒有用clear:both;清除浮動
2016-11-07
我也想知道