Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 让引导图标正常工作_Css_Twitter Bootstrap - Fatal编程技术网

Css 让引导图标正常工作

Css 让引导图标正常工作,css,twitter-bootstrap,Css,Twitter Bootstrap,我已经将bootstrap.css包含到我的html文档中。现在我一直试图显示字形图标,但它们根本不显示。有人能帮忙吗 我试过了 <i class="glyphicon glyphicon-align-justify"></i> 还有这个 <i class="glyphicon glyphicon-align-justify">&#xe055;</i> 和#xe055; 也试过 页面上没有显示任何内容 确保您还下载了字体文件夹

我已经将
bootstrap.css
包含到我的html文档中。现在我一直试图显示
字形图标
,但它们根本不显示。有人能帮忙吗

我试过了

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

还有这个

<i class="glyphicon glyphicon-align-justify">&#xe055;</i>
和#xe055;
也试过

页面上没有显示任何内容

  • 确保您还下载了字体文件夹
  • 在bootstraps.css中搜索此类

    @字体{ 字体系列:“字形图标半身人”

    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');
    
    }

  • 确保文件的路径正确,否则您可以更改它

您在
。/font/
目录中也有glyphicons字体吗?请提供您的html页面。当我下载引导程序时,字体目录不存在,相应的字体文件夹在引导程序v4中不再存在。图标已被删除