我发布了一个截图,我的结果与代码和,一个截图与什么结果,我试图做的。我试图嵌入图标到占位符,但它似乎不工作。
<div class="row">
<div class="col-md-6 col-sm-12">
<label>Name</label>
<div class="form-field">
<i class="fa fa-user"></i>
[text* name placeholder "Enter your name"]
</div>
</div>
<div class="col-md-6 col-sm-12">
<label>E-Mail</label>
<div class="form-field">
<i class="fa fa-envelope-o"></i>
[email* email-78 placeholder "Enter your email"]
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 col-sm-12">
<label>Telephone <span style="color:#aaa">(Optional)</span></label>
<div class="form-field">
<i class="fa fa-phone"></i>
[text text-74 placeholder "Enter your phone"]
</div>
</div>
<div class="col-md-6 col-sm-12">
<label>Website <span style="color:#aaa">(Optional)</span></label>
<div class="form-field">
<i class="fa fa-globe"></i>
[text text-985 placeholder "Enter your website"]
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<label>Message</label>
<div class="form-field">
<i class="fa fa-pencil-square-o"></i>
[textarea textarea-197 placeholder "Enter your message"]
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
[submit class:btn class:btn-default "SEND YOUR MESSAGE"]
</div>
</div>
我的结果是:
我想完成这一点:
谢谢您
1条答案
按热度按时间kmpatx3s1#
找到下面的例子,它可能会帮助你。
HTML格式
CSS在以下代码中.iconDsp类,它将链接FontAwesome字体系列以显示图标