CSS内联块问题 - 元素被推下

Abr*_*ham 18 css

演示:http://jsfiddle.net/q4uNj/
所以这就是问题:我无法弄清楚为什么第二个div - class="other"被推倒了.

Vla*_*lin 42

您可以使用css-property vertical-align.将它添加到".other"规则,它会没问题.

.other {
    display:inline-block;
    vertical-align:top;
    height:32px;
    margin:2px;
}
Run Code Online (Sandbox Code Playgroud)

或者你可以使用下面的建议,但不要忘记将"overflow:hidden"添加到#toolbar.