如何插入将出现在输入右侧的twitter bootstrap的glyphicon?
<%= f.email_field :email, class: 'form-control', placeholder: 'Email', autofocus: true %>
提前谢谢!
答案 0 :(得分:1)
<div class="input-group">
<%= f.email_field :email, class: 'form-control', placeholder: 'Email', autofocus: true %>
<span class="input-group-addon">
<span class="glyphicon glyphicon-check"></span>
</span>
</div>