加两个div
* {
margin:0;
padding:0;
}
#main {
}
#main2 {
margin:auto;
background:red;
width:600px;
}
#main3 {
clear:both;
margin:auto;
background:blue;
width:500px;
}
#col1 {
float:left;
background:#ddd;
width:100px;
}
#col2{
width:100px;
float:left;
background:#ddd;
}
#sec1 {
width:200px;
float:left;
background:#ddd;
}
#sec2{
background:#ddd;
width:200px;
float:left;
}
col1gwegwehhhhhhhhhh
col2gwegegehhhhhhhh
sec1gweghhhhhhhhhhhhhhhhhhhhh343434
sec2gwhhhhhhhhhhhhhhhhh
看看这样符合要求嘛?
说实话,感觉还是不很满意.因为需要都是固定的width