試圖水平對齊三個浮動div,出於某種原因,我得到了第二個和第三個div的上升。試圖讓所有這三個內聯。水平對齊div
任何想法
<style type="text/css">
#main {
vertical-align: middle;
alignment-adjust: middle;
}
.floater {
float:left;
}
</style>
</head>
<body>
<div id="main">
<div class="floater"><select name="test"></select>
</div>
<div class="floater"><select name="test"></select>
</div>
<div class="floater"><select name="test"></select>
</div>
</div>
它似乎運作良好? [jsFiddle](http://jsfiddle.net/6Remc/1/) –