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

时间:2023-01-30 23:59:07

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

为什么要显示而不显示另一个。男人,我很困惑! :(新泽西州

3 个解决方案

#1


9  

The answer is, it's not declared in your Bootstrap CSS file. 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):

答案是,它没有在你的Bootstrap CSS文件中声明。您可能想要从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)。

#2


0  

Bootstrap 3 files were out of date! 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. Sorry about that.

Bootstrap 3文件已过期! glyphicon-bed是以前版本的Bootstrap中没有的新图标,而glyphicon-home已经存在于各种先前版本中,如果不是全部的话。对于那个很抱歉。

#3


0  

I experienced a similar problem. When publishing a site on a webserver with bootstrap and glyphicons. I could not see glyphicons on that published site. It was no problem on our development system. Cause was an activated Javascript blocker. 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...

我遇到了类似的问题。使用引导程序和glyphicons在Web服务器上发布站点时。我在该出版网站上看不到字形。这对我们的开发系统来说没问题。原因是一个激活的Javascript阻止程序。在对已发布的网站进行例外处理后,它再次正常运行。只是想提一下,万一有人像我一样愚蠢,并遇到这个......

#1


9  

The answer is, it's not declared in your Bootstrap CSS file. 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):

答案是,它没有在你的Bootstrap CSS文件中声明。您可能想要从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)。

#2


0  

Bootstrap 3 files were out of date! 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. Sorry about that.

Bootstrap 3文件已过期! glyphicon-bed是以前版本的Bootstrap中没有的新图标,而glyphicon-home已经存在于各种先前版本中,如果不是全部的话。对于那个很抱歉。

#3


0  

I experienced a similar problem. When publishing a site on a webserver with bootstrap and glyphicons. I could not see glyphicons on that published site. It was no problem on our development system. Cause was an activated Javascript blocker. 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...

我遇到了类似的问题。使用引导程序和glyphicons在Web服务器上发布站点时。我在该出版网站上看不到字形。这对我们的开发系统来说没问题。原因是一个激活的Javascript阻止程序。在对已发布的网站进行例外处理后,它再次正常运行。只是想提一下,万一有人像我一样愚蠢,并遇到这个......