【发布时间】:2014-09-11 11:14:28
【问题描述】:
这是我的表格:
<form novalidate class="form-group" ng-hide="tab==1">
Reviews Min: <input type="number" ng-init="revNum=0" class="form-control" min="0" step="10" ng-model="revNum" />
Min Price: <input type="number" ng-init="minNum=0" class="form-control" min="0" step="1000" ng-model="minNum" />
Max Price: <input type="number" ng-init="maxNum=0" class="form-control" min="0" step="1000" ng-model="maxNum" />
<button class="btn btn-primary" ng-click="updateNumArray(revNum, minNum, maxNum)">Filter</button>
</form>
这里是我的style.css:
input {
width: 100px;
}
这是我在浏览器中看到的:
我应该改变什么让它看起来像这样:
【问题讨论】:
-
理想情况下,您也应该使用
<label>。 -
这可能行得通,试试
.form-group > .form-control, .form-group > .btn-primary {display: inline-block;} -
@MichaelVayvala 也许这就是你想要的,检查那个演示 - bootply.com/usy0b1IwS3
标签: html css forms twitter-bootstrap