为什么我不能在我的文本框中使用bootstrap Glyphicons?

时间:2016-11-25 08:53:16

标签: twitter-bootstrap glyphicons

我是bootstrap的新手,想在我的文本框中使用Glyphicons,为此目的写下这段代码:

<div class="input-group input-group-lg">
        <span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span>
        <input type="text" class="form-control" placeholder="نام">
    </div>


但是当我运行我的页面时,在文本框中看不到任何图标,我该如何解决呢?谢谢。

1 个答案:

答案 0 :(得分:0)

试试这个。 我希望这会对你有所帮助。

&#13;
&#13;
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

<div class="container">
  <div class="row">
	<div class="col-sm-4 col-sm0-offset-4">
	  <div class="form-group has-feedback">
	    <label class="control-label" for="inputSuccess2">Input with Icon</label>
		  <input type="text" class="form-control" id="inputSuccess2">
		  <span class="glyphicon glyphicon-ok form-control-feedback"></span>
			</div>
		</div>
	</div>
</div>
&#13;
&#13;
&#13;