我在整理股利(或多个)的一个问题,我有两种类型a, b
排序的div
a - should always be at the front (all a types)
b - should be following all a types.
HTML:
<div class="" style="">
<div class="a">a</div>
<div class="a">a</div>
<div class="b">b</div>
<div class="a">a</div>
</div>
CSS:
.a, .b {
display:inline-block;
width:50px;
height:50px;
padding:15px;
margin:5px;
}
.a {
float:left;
background-color: blue;
}
.b { background-color: red; }
这似乎在一行罚款:
但休息为一个网格:
期望的结果(箱数无关):
的jsfiddle:http://jsfiddle.net/kQkn9/
我会怎样去解决这个问题?
我不明白你想要做什么。 – woz
@woz更新的答案,也许你现在可以理解 – Kivylius