Twitter bootstrap 引导程序未加载图标
我从bootstrap开始,试图添加一个glyphicon作为我的按钮,在我看来,好像我已经按照bootstrap上的说明来做了,但它就是不起作用 我的代码:Twitter bootstrap 引导程序未加载图标,twitter-bootstrap,Twitter Bootstrap,我从bootstrap开始,试图添加一个glyphicon作为我的按钮,在我看来,好像我已经按照bootstrap上的说明来做了,但它就是不起作用 我的代码: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>My Game</title> <!--bootstrap --> <link rel="styleshe
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>My Game</title>
<!--bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
<!--jQuery-->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
</head>
<body>
<section>
<button type="button" class="btn btn-primary">
<span class="glyphicon glyphicon-star"></span>
</button>
</section>
<script src="game.js"></script>
</body>
</html>
我错过了什么 请参考Bootstrap 4迁移文档:
Glyphicons没有加载,因为它们不再是Bootstrap CSS框架的一部分。Hmmm这是一个奇怪的问题,看起来它正在使用Bootstrap 3.3.7,Bootstrap 4.0.0是否删除了glyphicon…?嘿,thx,谢谢你的回答,我意识到了,当我在评论中键入时,你已经回答了我的问题,很高兴知道,thx没有意识到