我試圖在一個容器div內浮動3個div。我認爲這很簡單,但我很難將它們均勻分開。由於我希望網站有一定的響應能力,所以我不能在px中指定空格。在一個容器div內浮動3個div
CSS:
#circlecontain{background-color:green;height:200px; width:1200px; margin:auto;}
.circle{width:200px;height:200px;border-radius:100px;
font-family:Arial, Helvetica, sans-serif;font-size:20px;color:#fff;
line-height:150px;text-align:center;background: rgba(0,0,0,0.8);
margin:auto; display:inline-block; vertical-align:middle;
}
在此先感謝
謝謝!我到了那裏,但是這些圈子並沒有集中在包裝盒中。儘管保證金:汽車 – user1944305 2013-05-04 13:15:30
@ user1944305你可以創建一個小提琴嗎? – 2013-05-04 13:16:19
沒關係,它與顯示有關:inline-block,只是刪除它,似乎工作正常。再次感謝! – user1944305 2013-05-04 13:20:36