【发布时间】:2016-04-16 07:54:33
【问题描述】:
很难将此图标强制放在输入的右侧而不是放在下方。已更改 col 编号,放入 div 等。但没有。这是它现在的样子:
我的代码是(示例不显示关闭表单标记):
<form class="pptReg" role="form" name="pptReg" novalidate>
<h1 style="padding-top: 60px; color: #ab2328;">Participant Information</h1>
<div class="form-group col-md-3 naviaInp" style="padding-top: 30px;">
<label for="empCode">Employer Code</label>
<input type="text" name="empCode" class="form-control" id="empCode" data-ng-model="pptregistration.coCode" ng-required="true" maxlength="3" autofocus ng-blur="getEmpIdType(true);">
<a class="questionIcon" href="#"><i class="fa fa-question-circle col-md-2 fa-2x" style="float: right;"></i></a>
<div ng-show="(pptReg.$submitted || pptReg.empCode.$touched) && pptReg.empCode.$error.required">
<p class="claimError"><i class="fa fa-exclamation-circle"></i><span>This is a required field.</span></p>
</div>
<div ng-show="(pptReg.$submitted || pptReg.empCode.$touched) && empIdType == ''">
<p class="claimError"><i class="fa fa-exclamation-circle"></i><span>The Employer Code is invalid.</span></p>
</div>
</div>
它只是一个很棒的字体图标,我试图添加到那里的输入右侧。我正在使用 Bootstrap 3 进行布局。
想法或建议(我自己脑子里想了很多!)?
非常感谢。
【问题讨论】:
标签: html css twitter-bootstrap font-awesome