twitter-bootstrap 使用 bootstrap 3 中的 glyphicon-facebook

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23014924/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 20:29:10  来源:igfitidea点击:

Using glyphicon-facebook from bootstrap 3

twitter-bootstraptwitter-bootstrap-3

提问by richie

I would like to use glyphicon-facebook. <i class="glyphicon glyphicon-search">works but why doesn't <i class="glyphicon-facebook">work? And also there is no option such as 'glyphicon glyphicon-facebook'.

我想用glyphicon-facebook. <i class="glyphicon glyphicon-search">工作,但为什么不<i class="glyphicon-facebook">工作?而且也没有诸如'glyphicon glyphicon-facebook'.

回答by jrenouard

You can also try http://fortawesome.github.io/Font-Awesome/icons/This is a very nice set of icons, pretty much everything you'll ever need.

你也可以试试http://fortawesome.github.io/Font-Awesome/icons/这是一组非常好的图标,几乎所有你需要的东西。

回答by Lowkase

There is no glyphicon-facebook glyph in the Bootstrap glyph library: http://getbootstrap.com/components/

Bootstrap 字形库中没有 glyphicon-facebook 字形:http://getbootstrap.com/components/

Take a look at fontastic.me. You can create custom sets of glyphs and there are a tonne of free glyphs to choose from including facebook glphys.

看看fontastic.me。您可以创建自定义字形集,并且有大量免费字形可供选择,包括 facebook glphys。

Another alternative is icomoon.io

另一种选择是icomoon.io

回答by Dhavalkumar Prajapati

add in header file and <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

添加头文件和 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

use <i class="fa fa-facebook"></i>

利用 <i class="fa fa-facebook"></i>

for different logo you have to use different name here is the list of icons and their code http://fontawesome.io/icons/

对于不同的徽标,您必须使用不同的名称,这里是图标列表及其代码http://fontawesome.io/icons/

回答by Gorge

I dont sure why you want glyphicon

我不知道你为什么想要 glyphicon

but fa class offer it

但是fa班提供

https://www.w3schools.com/icons/fontawesome_icons_brand.asp

https://www.w3schools.com/icons/fontawesome_icons_brand.asp

<ul class="face">
         <a class="fa fa-facebook-official" id="face_0"   href="">
</ul>