我尝试使用引导程序(水平形式)制作模态表单,并且该字段显示在标签下。知道如何修复它,以便输入文本框位于标签的右侧而不是标签下方吗?
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close specialb" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Modal header</h3>
</div>
<div class="modal-body">
<form class="form-horizontal" class="non-margined">
<div class="control-group">
<label class="control-label" for="firstName">First name:</label>
<div class="controls">
<input type="text" id="firstName" placeholder="FirstName" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="lastName">Last name:</label>
<div class="controls">
<input type="password" id="lastName" placeholder="LastName" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="emailAddress">Email Address:</label>
<div class="controls">
<input type="password" id="emailAddress" placeholder="EmailAddress" />
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary">Save changes</button>
</div>
</div>