gpt4 book ai didi

css - 如何让 glyphicons 在 twitter-bootstrap 中工作?

转载 作者:行者123 更新时间:2023-11-28 11:34:54 26 4
gpt4 key购买 nike

我有本地存储的 Bootstrap 文件:

<link rel="stylesheet" href="/bootstrap/3.2.0/css/bootstrap.min.css">

<script src="/bootstrap/3.2.0/js/bootstrap.min.js"></script>

但是当我这样做的时候:

<span class="glyphicon glyphicon-print" aria-hidden="true"></span>

我得到一个小方 block 字符,例如当客户端没有合适的字体时显示的。我读了here有单独的 CSS,但链接已断开。有什么解决办法吗?

最佳答案

找到了:

需要本地创建:

/bootstrap/3.2.0/fonts/glyphicons-halflings-regular.eot
/bootstrap/3.2.0/fonts/glyphicons-halflings-regular.woff
/bootstrap/3.2.0/fonts/glyphicons-halflings-regular.ttf
/bootstrap/3.2.0/fonts/glyphicons-halflings-regular.svg

我从这里获取:

http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/fonts/glyphicons-halflings-regular.eot http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/fonts/glyphicons-halflings-regular.woff http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/fonts/glyphicons-halflings-regular.ttf http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/fonts/glyphicons-halflings-regular.svg

关于css - 如何让 glyphicons 在 twitter-bootstrap 中工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29747963/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com