如何水平对齐选择框

时间:2014-03-13 01:43:51

标签: twitter-bootstrap

如何将以下选择框彼此水平对齐。

Thats到期日:月:年

// netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css

http://jsfiddle.net/fzVm8/

    <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>

1 个答案:

答案 0 :(得分:0)

尝试将标签类更改为checkbox-inline。