最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Language picker with flag icon with Bootstrap - Stack Overflow

programmeradmin2浏览0评论

I would put a language picker in this section:

<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>

I would insert two flag icons under "Web Designer Trio" subtitle. I would use the class="icon-flag" from Bootstrap 3.

I think I have to use something like this:

<span class="icon-flag">

I would put a language picker in this section:

<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>

I would insert two flag icons under "Web Designer Trio" subtitle. I would use the class="icon-flag" from Bootstrap 3.

I think I have to use something like this:

<span class="icon-flag">
Share Improve this question edited Nov 28, 2015 at 17:03 elena 4,2185 gold badges33 silver badges46 bronze badges asked Jan 29, 2015 at 11:16 sharkbaitsharkbait 3,05016 gold badges54 silver badges89 bronze badges 3
  • So what is your question? – jrarama Commented Jan 29, 2015 at 11:32
  • I don't know how to insert the language picker. – sharkbait Commented Jan 29, 2015 at 11:42
  • My code dowsen't work. The flag is not shown.. – sharkbait Commented Jan 29, 2015 at 11:43
Add a ment  | 

1 Answer 1

Reset to default 3

Well, the native Bootstrap 3.x icons are named glyphicon-<name>. So in your case:

<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. Then you should be fine.

发布评论

评论列表(0)

  1. 暂无评论