我在 Bootstrap 中使用向上箭头字形图标。当我在 HTML 中应用下载的 css 时它不起作用,但如果在线使用完整的 HTTP css 路径它有效。下面是我的代码,告诉我我的代码哪里错了,它是否依赖于浏览器版本?如果我使用 https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css .这条完整的路径有效。但我需要离线添加。
<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="w3.css">
<link rel="stylesheet" href="bootstrap.min.css">
<script src="jquery.min.js"></script>
<script src="bootstrap.min.js"></script>
<body>
<div class="w3-container">
<button class="w3-button w3-xlarge w3-circle w3-red w3-card-4"> <span class="glyphicon"></span></button>
</div>
</body>
</html>
最佳答案
替换这个
<span class="glyphicon"></span>
与
<span class="glyphicon glyphicon-arrow-up"></span>
关于html - 使用离线 css 时,glyphicon 向上箭头不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45810400/