带旗帜图标的语言选择器 Bootstrap
Language picker with flag icon with Bootstrap
我会在这个部分放一个语言选择器:
<section id="logo-section" class="text-center">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="logo text-center">
<h1>Batpeppa</h1>
<span>Web Designer Trio</span>
</div>
</div>
</div>
</div>
</section>
我会在 "Web Designer Trio" 副标题下插入两个旗帜图标。
我会使用 class="icon-flag" 来自 Bootstrap 3.
我想我必须使用这样的东西:
<span class="icon-flag">
嗯,native Bootstrap 3.x icons 被命名为 glyphicon-<name>
。所以在你的情况下:
<i class="glyphicon glyphicon-flag"></i>
<i class="glyphicon glyphicon-flag"></i>
Demo. Your code does not work because you are referring to the "old" Twitter Bootstrap 2.x icons, named icon-<name>
. If you want to use those, you must download and include the .png
and .css
from here。那你应该没问题。
我会在这个部分放一个语言选择器:
<section id="logo-section" class="text-center">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="logo text-center">
<h1>Batpeppa</h1>
<span>Web Designer Trio</span>
</div>
</div>
</div>
</div>
</section>
我会在 "Web Designer Trio" 副标题下插入两个旗帜图标。 我会使用 class="icon-flag" 来自 Bootstrap 3.
我想我必须使用这样的东西:
<span class="icon-flag">
嗯,native Bootstrap 3.x icons 被命名为 glyphicon-<name>
。所以在你的情况下:
<i class="glyphicon glyphicon-flag"></i>
<i class="glyphicon glyphicon-flag"></i>
Demo. Your code does not work because you are referring to the "old" Twitter Bootstrap 2.x icons, named icon-<name>
. If you want to use those, you must download and include the .png
and .css
from here。那你应该没问题。