这是我的960网格系统情况:
<div class="kundregister_grid_full"> <div class="kundregister_grid_1">ID</div> <div class="kundregister_grid_1">Namn</div> <div class="kundregister_grid_1">Anv.Namn</div> <div class="kundregister_grid_1">Email</div> <div class="kundregister_grid_1">Roll</div> <div class="kundregister_grid_1">Aktiv</div> </div>
这是我的div的集合,用作表结构。
CSS说如下:
.kundregister_grid_1 { display: inline-block; float: left; margin: 0; text-align: center; } .kundregister_grid_1 { width: 140px; }
不介意瑞典命名。我想要divs显示,即使他们没有值。
<div class="kundregister_grid_full"> <div class="kundregister_grid_1">ID</div> <div class="kundregister_grid_1"></div> <div class="kundregister_grid_1"></div> <div class="kundregister_grid_1">Email</div> <div class="kundregister_grid_1">Roll</div> <div class="kundregister_grid_1">Aktiv</div> </div>
像这样,在这种情况下,在两列中没有“Namn”和“Avn.Namn”。然而,当在chrome中运行它们,它们被删除,不再按照float:left的顺序推其他div。因此,如果我在上面的相同的div中的类别,那么值将放在错误的类别。