我看了一堆網站,但沒有一個爲我工作。我可能錯過了一些非常簡單的事情。如何將我的所有div對齊在一行中?
#container {
width:100%;
}
#one {
background-color:blue;
width:20%;
height:50%;
}
#two {
background-color:green;
width:20%;
height:50%;
}
#three {
background-color:yellow;
width:20%;
height:50%;
}
#four {
background-color:orange;
width:20%;
height:50%;
}
#five {
background-color:red;
width:20%;
height:50%;
}
這就是我想要它看起來像:
它不顯示了很多,我懷疑是因爲身高的50%... 謝謝提前:)
請提供你所得到的一些截圖,並在油漆或其他編輯器中做出你想要的(ish)。 – Blacksilver
對不起,我不能把一個實際的圖片,我沒有足夠的聲譽 –
下一次,鏈接一imgur。 – Blacksilver