Html 向Laravelcollective提交按钮添加图标
我正在尝试添加垃圾图标以提交按钮,我尝试了以下操作:Html 向Laravelcollective提交按钮添加图标,html,css,laravel,laravel-5,laravelcollective,Html,Css,Laravel,Laravel 5,Laravelcollective,我正在尝试添加垃圾图标以提交按钮,我尝试了以下操作: {!! Form::submit('', ['class' => 'btn btn-warning btn-sm fa fa-trash']) !!} 但图标不会显示。如何解决这个问题?提前谢谢 尝试使用Form::button而不是Form::submit: {{ Form::button('<i class="fa fa-trash"></i>', ['type' => 'submit', 'clas
{!! Form::submit('', ['class' => 'btn btn-warning btn-sm fa fa-trash']) !!}
但图标不会显示。如何解决这个问题?提前谢谢 尝试使用Form::button而不是Form::submit:
{{ Form::button('<i class="fa fa-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-warning btn-sm'] ) }}
{{Form::button('',['type'=>'submit','class'=>'btn btn warning btn sm'])}
您也可以尝试:
输入类型按钮示例:
{{ FORM::button('<i class="glyphicon glyphicon-trash" aria-hidden="true"></i> Text button',['class'=>'button button-red','type'=>'button','id'=>'id-button']) }}
{{FORM::button('Text button',['class'=>'button button red','type'=>'button','id'=>'id-button'])}
无法尝试
拉雷维尔集体形式给予了非常激烈的竞争
<button class='btn btn-primary' type='submit' value='submit'>
<i class='fa fa-save'> </i> Save
拯救
是不支持伪元素(:before,:after)。字体真棒的工作原理是:如果它“工作完美”,那么请将它标记为解决方案,让其他人知道。