gpt4 book ai didi

twitter-bootstrap-3 - Bootstrap Glyphicons 不显示

转载 作者:行者123 更新时间:2023-12-04 08:01:14 24 4
gpt4 key购买 nike

我正在使用 bootstrap 3,我将一个 Glyphicons 与输入文本并排放置,而 Glyphicons 未显示(但 btn-info 显示)我正在使用:class="input-group"来包含字形、输入文本和提交按钮。

这是代码:

<body>
<nav class="navbar navbar-default" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Meu Site</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a href="#">News</a></li>
<li><a href="#">Login</a></li>
<li><a href="#">Create Account</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container -->
</nav>

<div class="container">
<div class="row">
<div class="span7 text-center col-md-4 col-md-offset-3" style="float: none; margin-left: auto;margin-right: auto;">
<img src="../../app.images/logo.jpg" />
</div>
<form class="span7 text-center col-md-4 col-md-offset-3" style="float: none; margin-left: auto;margin-right: auto;" role="search">
<div class="form-group">
<label class="radio-inline"><input type="radio" name="optradio">Opt1</label>
<label class="radio-inline"><input type="radio" name="optradio" checked="">Opt2</label>
<label class="radio-inline"><input type="radio" name="optradio">Opt3</label>
</div>

<div class="input-group">
<a href="#" class="btn btn-info input-group-btn">
<span class="glyphicon glyphicon-th"></span>
</a>
<input class="form-control " type="text" placeholder="Search" />
<div class="input-group-btn">
<button class="btn btn-default" type="submit">Search</button>
</div>
</div>
</form>
<div class="span7 text-center col-md-4 col-md-offset-3" style="float: none; margin-left: auto;margin-right: auto;">
Slogan
</div>
<div class="span7 text-center col-md-4 col-md-offset-3" style="float: none; margin-left: auto;margin-right: auto;">
<a href="#">Mobile</a>
<a href="#">Addons</a>
<a href="#">Contact</a>
</div>
</div>
</div>
</body>

最佳答案

似乎是由 .input-group-btn 引起的。有一个规则可以将此元素的 font-size 设置为 0。添加一个样式规则:

div.container a.input-group-btn {
font-size: 14px;
}

Working sample

关于twitter-bootstrap-3 - Bootstrap Glyphicons 不显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27638228/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com