我准备了这个可爱的小图片:
这基本上是我需要实现的目标。
我正在使用960 Grid System
甚至可能吗?
我试过这个:
<div class="grid_8"></div>
<div class="clear"></div>
<div class="grid_4"></div>
<div class="grid_4"></div>
<div class="clear"></div>
<div class="grid_4"></div>
<div class="grid_4"></div>
但我不知道id如何将侧边栏放入!!
编辑
我刚试过这样的层次结构:
<div class="grid_8">
<div class="grid_4"></div>
<div class="grid_4"></div>
<div class="clear"></div>
<div class="grid_4"></div>
<div class="grid_4"></div>
<div class="clear"></div>
</div>
<div class="grid_4"></div>
但是那个巨大的失败:(
答案 0 :(得分:5)
您需要将.grid_4
和.grid_8
内容div嵌套在.grid_8
中:
<div class="grid_8">
<div class="grid_8 alpha omega"></div>
<div class="grid_4 alpha"></div>
<div class="grid_4 omega"></div>
</div>
<div class="grid_4"></div>