简体   繁体   English

一些字形显示,有些不是吗? Bootstrap 3

[英]some glyphicons showing, some not? Bootstrap 3

I have a page with the following: 我有一个页面包含以下内容:

<p>This one isn't appearing ->> <span class="glyphicon glyphicon-bed"></span></p>

<p>But this one is ->>  <span class="glyphicon glyphicon-home"></span></p>

At this URL: http://1080422389.n303457.test.prositehosting.co.uk/property-detail.php?jbID=4 在此URL: http//1080422389.n303457.test.prositehosting.co.uk/property-detail.php?jbID=4

Why would one show but not the other. 为什么要显示而不显示另一个。 Man I'm so confused! 男人,我很困惑! :( NJ :(新泽西州

The answer is, it's not declared in your Bootstrap CSS file. 答案是,它没有在你的Bootstrap CSS文件中声明。 You might want to grab the latest pull of the glyphicon font and CSS declarations from GitHub, at least this part (but I would do the whole thing as it's possible it had been remapped): 您可能想要从GitHub获取最新的glyphicon字体和CSS声明,至少这一部分(但我会做全部事情,因为它可能已被重新映射):

.glyphicon-bed:before {
  content: "\e219";
}

Your version (3.2) was before they added the bed (3.3.2). 您的版本(3.2)是在他们添加床之前(3.3.2)。

Bootstrap 3 files were out of date! Bootstrap 3文件已过期! glyphicon-bed is a new icon not featured in previous versions of Bootstrap whereas glyphicon-home has existed through various previous versions, if not all. glyphicon-bed是以前版本的Bootstrap中没有的新图标,而glyphicon-home已经存在于各种先前版本中,如果不是全部的话。 Sorry about that. 对于那个很抱歉。

I experienced a similar problem. 我遇到了类似的问题。 When publishing a site on a webserver with bootstrap and glyphicons. 在带有引导程序和glyphicons的Web服务器上发布站点时。 I could not see glyphicons on that published site. 我在该出版网站上看不到字形。 It was no problem on our development system. 这对我们的开发系统没有问题。 Cause was an activated Javascript blocker. 原因是一个激活的Javascript阻止程序。 After making an exception for the published site it all worked fine again. 在对已发布的网站进行例外处理后,它再次正常运行。 Just wanted to mention it, in case someone is as stupid as me and runs into this... 只是想提一下,万一有人像我一样愚蠢,并遇到这个......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM