bootstrap的图标字体怎么用啊
<html>
<head><title></title>
<link href="js/bootstrap-3.3.5/dist/css/bootstrap.CSS" rel="stylesheet" type="text/css">
<link href="Font-Awesome-3.2.1/css/font-awesome.CSS" rel="stylesheet" type="text/css">
<style>
</head>
<body>
<i class="fa fa-wrench" aria-hidden="true"></i><h1 class="btn btn-success btn-large">hello word !</h1>
<scrpt src="js/bootstrap-3.3.5/dist/js/jquery-1.7.js"></script>
<scrpt src="js/bootstrap-3.3.5/dist/js/bootstrap.js"></script>
</body>
</html>
<head><title></title>
<link href="js/bootstrap-3.3.5/dist/css/bootstrap.CSS" rel="stylesheet" type="text/css">
<link href="Font-Awesome-3.2.1/css/font-awesome.CSS" rel="stylesheet" type="text/css">
<style>
d1{width:500px;height:300px;background:#ccc;}
</style></head>
<body>
<i class="fa fa-wrench" aria-hidden="true"></i><h1 class="btn btn-success btn-large">hello word !</h1>
<scrpt src="js/bootstrap-3.3.5/dist/js/jquery-1.7.js"></script>
<scrpt src="js/bootstrap-3.3.5/dist/js/bootstrap.js"></script>
</body>
</html>
2 个回复
小落
赞同来自: 透过__
小落
赞同来自: 透过__
<h1 class="btn btn-success btn-large">
<span class="glyphicon glyphicon-asterisk"></span>
hello word !</h1>
必须注意图标最好用span 然后是class=“glyphicon glyphicon-asterisk”