奇怪?。。槭裁次以O(shè)置了邊框加上內(nèi)容區(qū)域大小1000px后,sidebar還是跳到下一行?
代碼如下:
.main{
height:250px;
background:#09F;
margin-top:10px;
}
.news{
width:340px;
background:#F33;
}
.course{
width:410px;
background:#096;
margin:0 7px;
}
.sidebar{
width:230px;
background:#C69;
}
.news,.course,.sidebar{
height:250px;
float:left;
border:1px solid #FFF;
}
340+410+230+7+7+6(你懂的),設(shè)置完成后,sidebar始終是跳到下一行左邊,但是如果我任意把其他一個框減小1px后,他就回到上面的最右邊了。請問老師這是為什么發(fā)生這種情況?我也是根據(jù)你的去做的啊,聲明:我的wrap也是設(shè)置的是1000px
2016-12-27
我基本不用個DW ,還是sublime text來得好用,輕量級的編譯器還支持多種類型文本編寫
2015-03-10
.。。。
2015-02-04
2015-02-03
因為你給它們都加了border的屬性呀,border也要占位置的,3個div,那也要占6px,你用goggle圈一下,看一下總寬度是多少