クラス foo または 6 または 3 を持つ 9つの
divが必要
です。
これら
の 3 つの数字である必要があり
ます2 なら 3 まで、7 なら 9 まで数えます
これはjsfiddleの私のコードです
これはhtml
<div id="content">
<div class="foo">foo</div>
<div class="foo">foo</div>
<div class="foo">foo</div>
<div class="foo">foo</div>
</div>
そしてこれはcssコードです
#content{
width: 510px;
background: #ccc;
height: 800px;
}
.foo{
width: 150px;
height: 100px;
background: #808080;
margin: 10px;
float: left;
}
ありがとうございました