Css 关于Glyphicon bug的建议?

Css 关于Glyphicon bug的建议?,css,twitter-bootstrap,Css,Twitter Bootstrap,我是个新手,我正试图弄明白是什么让他们如此喜怒无常。我在几个网站上都有它们,我经常发现某个特定的glyphicon不会显示,或者有时某个特定网站上不会显示任何glyphicon 我的HTML如下所示: <li><a href="/topics/vertebrate-physiology" title="Vertebrate Physiology">5. Vertebrate Physiology <span class="glyphicon glyphicon-ey

我是个新手,我正试图弄明白是什么让他们如此喜怒无常。我在几个网站上都有它们,我经常发现某个特定的glyphicon不会显示,或者有时某个特定网站上不会显示任何glyphicon

我的HTML如下所示:

<li><a href="/topics/vertebrate-physiology" title="Vertebrate Physiology">5. Vertebrate Physiology <span class="glyphicon glyphicon-eye-open" style="font-size: 125%; color: #fff;"></span></li>
  • 但是,如果我将这些样式复制到计算机上同名的文件中并将其链接,它就不起作用了。我确认我与它的链接正确


    因此,如果我链接到在线样式表,我只能在我的一个本地网站上使用Glyph图标。为什么不能使用本地样式表?

    问题在于字体的相对路径。看看,你可以看到这样的东西:

    url(../fonts/glyphicons-halflings-regular.ttf)
    
    字体文件夹与css文件相对,css文件为
    https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css
    以便正确下载


    它在本地web服务器上不起作用,因为本地web服务器上缺少字体文件夹。如果你想让它在你的本地计算机上运行,你还必须下载fonts文件夹,并将它放在相对于你的
    bootstrap.css

    的正确文件夹中,这是因为你没有在预期的位置放置fonts文件夹。。在下载的CSS文件中搜索。/fonts/,你就会明白了

    从中下载引导程序的最佳方法


    事实上,我有一个字体文件夹,但它一定是在错误的位置。我将移动它,或更改样式表中的路径。谢谢。