.head,.main{ width:960px; height:600px;/*【任务1】*/margin:0 auto;}
.left{ width:220px; height:600px; background:#ccc; /*【任务2】*/float:left;}
.r_sub_right{ width:200px; height:600px; background:#9FC; /*【任务3】*/float:right;}
.footer{ height:50px; background:#9F9; /*【任务4】*/clear:both;}
.left{ width:220px; height:600px; background:#ccc; /*【任务2】*/float:left;}
.r_sub_right{ width:200px; height:600px; background:#9FC; /*【任务3】*/float:right;}
.footer{ height:50px; background:#9F9; /*【任务4】*/clear:both;}
有没有像我注释掉才能有效果的小伙伴~顶上去
.head,.main{ width:960px; height:600px;/*【任务1】*/margin:0 auto;}
.left{ width:220px; height:600px; background:#ccc; /*【任务2】*/float:left;}
.r_sub_right{ width:200px; height:600px; background:#9FC; /*【任务3】*/float:right;}
.footer{ height:50px; background:#9F9; /*【任务4】*/clear:both;}
.head,.main{ width:960px; height:600px;/*【任务1】*/margin:0 auto;}
.left{ width:220px; height:600px; background:#ccc; /*【任务2】*/float:left;}
.r_sub_right{ width:200px; height:600px; background:#9FC; /*【任务3】*/float:right;}
.footer{ height:50px; background:#9F9; /*【任务4】*/clear:both;}
.top{ height:80px; background-color:grey;}
.main{background-color:red; height:400px;width:100%; }
.left{width:200px; height:400px; background-color:blue; }
.right{width:100%;margin-left:210px; height:400px; background-color:rgb(154,204,153);position:absolute}
.foot{background-color:rgb(255,102,52);}
.main{background-color:red; height:400px;width:100%; }
.left{width:200px; height:400px; background-color:blue; }
.right{width:100%;margin-left:210px; height:400px; background-color:rgb(154,204,153);position:absolute}
.foot{background-color:rgb(255,102,52);}