2017-10-06 53 views
-1

我已将bootstrap.css包含到我的html文档中。现在我一直试图显示glyphicons,但他们根本没有出现。谁能帮忙?获取引导程序字形工作

心中已经试过

<i class="glyphicon glyphicon-align-justify"></i> 

<i class="glyphicon glyphicon-align-justify">&#xe055;</i> 

也试过

什么也不显示的页面

+0

你还在'../ fonts /'目录中有glyphicons字体吗? –

+0

请提供您的html页面。 –

+0

当我下载bootstrap时,字体目录不存在 – ElenaDBA

回答

0
  • 确保你已经还下载字体文件夹..
  • 在bootstraps.css搜索该类

    @字体面{ FONT-FAMILY: 'Glyphicons半身人';

    src: url('../fonts/glyphicons-halflings-regular.eot'); 
    src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded- 
    opentype'), url('../fonts/glyphicons-halflings-regular.woff2') 
    format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') 
    format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') 
    format('truetype'), url('../fonts/glyphicons-halflings- 
    regular.svg#glyphicons_halflingsregular') format('svg'); 
    

    }

  • 确保文件的路径是正确的其他明智的,你可以改变它。
+0

aparently字体文件夹不再存在于Bootstrap v4中。字画已被删除 – ElenaDBA