如何将以下选择框彼此水平对齐。
Thats到期日:月:年
// netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css
<div class="form-group">
<label class="checkbox inline" for="expirymonth" class="col-sm-2 control-label">Expiry Date </label>
<div class="col-sm-10">
<select id="expmonth" ng-model="expirymonth" ng-change="setcardmonth(expirymonth)" ng-options="e.month for e in cardmonth"/>
<select style="margin-left: 200px" ng-model="expiryyear" id="expyear" ng-change="setcardyear(expiryyear)" ng-options="y.year for y in cardyear"/>
</div>
</div>
答案 0 :(得分:0)
尝试将标签类更改为checkbox-inline。