Jon*_*n M 5 css twitter-bootstrap glyphicons
我有本地存储的引导程序文件:
<link rel="stylesheet" href="/bootstrap/3.2.0/css/bootstrap.min.css">
Run Code Online (Sandbox Code Playgroud)
和
<script src="/bootstrap/3.2.0/js/bootstrap.min.js"></script>
Run Code Online (Sandbox Code Playgroud)
但是当我这样做时:
<span class="glyphicon glyphicon-print" aria-hidden="true"></span>
Run Code Online (Sandbox Code Playgroud)
我得到一个小的方形字符,例如当客户端没有正确的字体时显示。我在这里读到有单独的 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
Run Code Online (Sandbox Code Playgroud)
我从这里采购:
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