我是 Sonal 我正在使用 Modal。我想在模态中创建一个表单。在那种形式中,我希望标签和 inputBox 在一行中。我的代码是:
<a data-toggle="modal" href="#work" style="float:right;font-size:60%;">
<small> Edit
</small>
</a>
<div class="modal fade " id="work">
<div class="modal-dialog ">
<div class="modal-content light">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×
</button>
<h4 class="modal-title">work
</h4>
</div>
<div class="modal-body">
<form>
<fieldset>
<label for="Company">Company Name:
</label>
<input type="text" name="Company" id="inputbox"
class="form-control" />
<br>
<label for="Job">Job Title:
</label>
<input type="text" name="Job" id="inputbox"
class="form-control" />
<br>
</fieldset>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close
</button>
<button type="button" class="btn btn-primary">Save changes
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
这是我的模态。我的标签“公司名称”和输入框在一行中。与“职称”相同