【发布时间】:2015-07-05 08:51:42
【问题描述】:
http://www.petcenters.com/painting-estimate 是一个使用 CssClass 选择器启用了 Bootstrap 的 ASP.NET 控件的测试页面。
我已尝试按照以下指南将 Font Awesome 类实现到 ASP.NET TextBox 控件中: Bootstrap Documentation
<div class="input-group">
<input type="text" class="form-control" placeholder="Recipient's username" aria-describedby="basic-addon2">
<span class="input-group-addon" id="basic-addon2">@example.com</span>
</div>
我使用的引导模板显示了他们的实现:Font Awesome with HTML Form Tags
<section class="col col-6">
<label class="label">Company</label>
<label class="input">
<i class="icon-append fa fa-envelope-o"></i>
<input type="text" name="company" id="company">
</label>
</section>
我已尝试复制 ASP.NET 文本框服务器控件的两种方案。
<div class="input-group col-md-6 clearfix">
<label for="txtGenCompany">Company</label>
<asp:TextBox ID="txtGenCompany" name="company" CssClass="form-control" aria-describedby="addon1" placeholder="Enter Company" runat="server" TabIndex="2"></asp:TextBox>
<span class="input-group-addon" id="addon1">
<i class="icon-append fa fa-envelope-o"></i>
</span>
</div>
我相信我缺少“span”或“i”Company TextBox
如果有人有任何想法,我将不胜感激。
【问题讨论】:
标签: css twitter-bootstrap font-awesome